bash case statement question [OT]
C M Reinehr
cmr at amsent.com
Thu Sep 22 08:54:46 PDT 2011
On Thu 22 September 2011 09:28:51 am David A. Bandel wrote:
> On Wed, Sep 21, 2011 at 12:51, xDog Walker <thudfoo at gmail.com> wrote:
> > Here is a question about bash: What does the .$1 mean in the following
> > case statement (I know $1 means the first argument, but what does the .
> > mean here?)
> >
> > case .$1 in
>
> note that there is NO space between the "." and the $1, effectively
> concatenating the two.
>
> > and later on:
> >
> > .[aA])
> > SAMPLE="blah";;
>
> again, note that your statement is "dot"[blah] -- again, it matches
> the concatenated . above.
>
> You can remove the "." throughout, it will work the same.
>
> > Thanks
> >
> > --
> > I have seen the future and I am not in it.
> > _______________________________________________
> > Linux-users mailing list ( Linux-users at linux-sxs.org )
> > Unsub/Password/Etc:
> > http://linux-sxs.org/mailman/listinfo/linux-users
> >
> > Need to chat further on this subject? Check out #linux-users on
> > irc.linux-sxs.org !
>
> HTH,
>
> David A. Bandel
This is exactly why I'd hate to see this group disappear. Although we may all
have discovered this list while using Caldera OL, we have stayed because of
the many highly knowledgeable & professional members and a very high signal to
noise ratio. If this list moves to Google Groups I, for one, will be following
-- although at this time I haven't the faintest idea of how GG works. ;-)
Thanks for all the great help that all of you have provided me over the years.
And, especially you David, another Debian user like myself.
Cheers!
cmr
--
Debian 'Lenny' - Registered Linux User #241964
--------
"More laws, less justice." -- Marcus Tullius Ciceroca, 42 BC
More information about the Linux-users
mailing list