Linux is screwd up

Mar 13, 2009 10:12

run linux?

try this script:

for X in {A..Z} {a..z} ; do
case $X in
[A-Z]) echo "$X is a capital letter" ;;
[a-z]) echo "$X is a lowercase letter" ;;
esac
done
that's right... linux can't tell the difference between a capital and a lowercase letter. this is broken in ubuntu, and fedora core... ( Read more... )

Leave a comment

Comments 4

dankamongmen March 13 2009, 17:26:10 UTC

echo c ; grep [A-Z]

I think you wanted a pipe here, Captain Asshat

Reply

dankamongmen March 13 2009, 17:28:40 UTC
[recombinator](0) $ for X in {A..Z} {a..z} ; do case $X in [[:upper:]]) echo "$X is a capital letter" ;; [[:lower:]]) echo "$X is a lowercase letter" ;; esac; done ( ... )

Reply

hugs March 13 2009, 17:46:42 UTC
I don't have a debian box... I did just test it on a gentoo box and it works fine...

Ubuntu and fedora core it's broken

"perhaps you ought learn your shell?"

haha, you're kidding right? don't tell me, your a linux user... You may want to figure out who you're talking to BEFORE you open up this conversation...

Reply

hugs March 13 2009, 17:43:54 UTC
yeah, fixed

Reply


Leave a comment

Up