[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: strange bash problem on potato

I'm running a slink system still, and I took your script and tried it with
i="A" and i="a", and got no output from either value. 

On inspection of your script, I see that 'case i in' is not what you
meant. This line should be 'case $i in' and you will get the results you
are expecting.

set -e

case $i in
 [A-H]) echo Set [A-H]
 [A-K]) echo Set [A-K]
reports: Set [A-H]

on my machine.


_-_-_-_-_-   Author of "The Debian Linux User's Guide"  _-_-_-_-_-_-

aka   Dale Scheetz                   Phone:   1 (850) 656-9769
      Flexible Software              11000 McCrackin Road
      e-mail:  dwarf@polaris.net     Tallahassee, FL  32308

_-_-_-_-_-_- If you don't see what you want, just ask _-_-_-_-_-_-_-

Reply to: