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.
#!/bin/bash
set -e
i="A"
case $i in
[A-H]) echo Set [A-H]
;;
[A-K]) echo Set [A-K]
;;
esac
reports: Set [A-H]
on my machine.
Luck,
Dwarf
--
_-_-_-_-_- 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: