diff options
author | ache <ache@FreeBSD.org> | 2003-08-04 14:10:33 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2003-08-04 14:10:33 +0000 |
commit | 3cc2a731d243e9ffa17daac04b6f303055a807d8 (patch) | |
tree | b87b601b18196b4123f94f6cdcf5d1eb665d152f /lib | |
parent | 50c14bf648d9cef3fb8806883e6b965d9b7f91f2 (diff) | |
download | FreeBSD-src-3cc2a731d243e9ffa17daac04b6f303055a807d8.zip FreeBSD-src-3cc2a731d243e9ffa17daac04b6f303055a807d8.tar.gz |
Fix double-wrong tr usage: tr '[a-z]' '[A-Z]'
First of all, it should be written as: tr 'a-z' 'A-Z'
ranges not encolosed in [] according to POSIX, so [] just included
in the replacement.
Second, it should be written: tr '[:lower:]' '[:upper:]'
since a-z and A-Z may have different length in some locales.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libedit/makelist | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libedit/makelist b/lib/libedit/makelist index 8c55523..bafb4d6 100644 --- a/lib/libedit/makelist +++ b/lib/libedit/makelist @@ -146,7 +146,7 @@ case $FLAG in # -fh) cat $FILES | $AWK '/el_action_t/ { print $3 }' | \ - sort | tr '[a-z]' '[A-Z]' | $AWK ' + sort | tr '[:lower:]' '[:upper:]' | $AWK ' BEGIN { printf("/* Automatically generated file, do not edit */\n"); printf("#ifndef _h_fcns_c\n#define _h_fcns_c\n"); |