hugme: (Default)
[personal profile] hugme
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... anyone else want to test it?

it's just the case command in FC10 older versions of linux you can do this on the command line:

echo c | grep [A-Z]

and it will come back with a 'c'... which it shouldn't.

something so basic, you think they would at least get that right...

oh, this is not broken in FreeBSD, Solaris Sparc, Solaris x86 or OpenSolaris

Date: 2009-03-13 05:26 pm (UTC)
From: [identity profile] dankamongmen.livejournal.com

echo c ; grep [A-Z]

I think you wanted a pipe here, Captain Asshat

Date: 2009-03-13 05:28 pm (UTC)
From: [identity profile] dankamongmen.livejournal.com
[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
A is a capital letter
B is a capital letter
C is a capital letter
D is a capital letter
E is a capital letter
F is a capital letter
G is a capital letter
H is a capital letter
I is a capital letter
J is a capital letter
K is a capital letter
L is a capital letter
M is a capital letter
N is a capital letter
O is a capital letter
P is a capital letter
Q is a capital letter
R is a capital letter
S is a capital letter
T is a capital letter
U is a capital letter
V is a capital letter
W is a capital letter
X is a capital letter
Y is a capital letter
Z is a capital letter
a is a lowercase letter
b is a lowercase letter
c is a lowercase letter
d is a lowercase letter
e is a lowercase letter
f is a lowercase letter
g is a lowercase letter
h is a lowercase letter
i is a lowercase letter
j is a lowercase letter
k is a lowercase letter
l is a lowercase letter
m is a lowercase letter
n is a lowercase letter
o is a lowercase letter
p is a lowercase letter
q is a lowercase letter
r is a lowercase letter
s is a lowercase letter
t is a lowercase letter
u is a lowercase letter
v is a lowercase letter
w is a lowercase letter
x is a lowercase letter
y is a lowercase letter
z is a lowercase letter
[recombinator](0) $

that's a debian box. perhaps you ought learn your shell?

Date: 2009-03-13 05:46 pm (UTC)
From: [identity profile] hugs.livejournal.com
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...

Date: 2009-03-13 05:43 pm (UTC)
From: [identity profile] hugs.livejournal.com
yeah, fixed

Profile

hugme: (Default)
hugme

April 2011

S M T W T F S
     12
3456789
10111213141516
17 181920212223
24252627282930

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Sep. 25th, 2017 10:29 pm
Powered by Dreamwidth Studios