diff options
author | Michael Sokolov <msokolov@ivan.Harhan.ORG> | 2001-01-27 19:34:13 +0000 |
---|---|---|
committer | Michael Sokolov <msokolov@ivan.Harhan.ORG> | 2001-01-27 19:34:13 +0000 |
commit | 834af0091a84d07965b83926134ae40f78bc2f97 (patch) | |
tree | f1ec32fb04370bdba2e037e243f71c371b3574df /ltconfig | |
parent | 40b3d7633d2a9d7113b0d2819898d36e1e55c8b9 (diff) | |
download | gdb-834af0091a84d07965b83926134ae40f78bc2f97.tar.gz |
* ltconfig: Shell portability fix for the tagname validity check.
Diffstat (limited to 'ltconfig')
-rwxr-xr-x | ltconfig | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -422,8 +422,10 @@ fi if test -n "$tagname"; then # Check whether tagname contains only valid characters - case "$tagname" in - *[!-_A-Za-z0-9,/]*) + case `$echo "X$tagname" | + $Xsed -e 's/[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]//g'` in + "") ;; + *) echo "$progname: invalid tag name: $tagname" 1>&2 exit 1 ;; |