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.
This commit is contained in:
Andrey A. Chernov 2003-08-04 14:10:33 +00:00
parent c6ff2155d9
commit e9e76fa4dd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118427

View File

@ -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");