bash case statement question

xDog Walker thudfoo at gmail.com
Thu Sep 22 04:30:59 PDT 2011


On Wednesday 2011 September 21 22:59, Roger Oberholtzer wrote:
> I suspect it is in case $1 is not set. Then there is still something in
> the case statement (e.g., "case . in"). Without this, the case statement
> will fail. Another method is to only do the case statement if you first
> determine that $1 has been assigned a value.
>
> Since this '.' has been added to the case part. it also has to be in all
> the .XXX) parts as well. Any ASCII printable character would work.

Excellent. Thanks a lot.

-- 
I have seen the future and I am not in it.



More information about the Linux-users mailing list