aboutsummaryrefslogtreecommitdiff
path: root/ltconfig
diff options
context:
space:
mode:
authorMichael Sokolov <msokolov@ivan.harhan.org>2001-01-27 19:34:13 +0000
committerMichael Sokolov <msokolov@ivan.harhan.org>2001-01-27 19:34:13 +0000
commit02d01ed4c83d955898f7ce2c5c144d6127d8cfc4 (patch)
tree97bb4fb51cd776b9c718dfadd6700f97a18dcaea /ltconfig
parentaea02b6b079bada87c60a4f31a4ea7bc1f138b8a (diff)
downloadgdb-02d01ed4c83d955898f7ce2c5c144d6127d8cfc4.zip
gdb-02d01ed4c83d955898f7ce2c5c144d6127d8cfc4.tar.gz
gdb-02d01ed4c83d955898f7ce2c5c144d6127d8cfc4.tar.bz2
* ltconfig: Shell portability fix for the tagname validity check.
Diffstat (limited to 'ltconfig')
-rwxr-xr-xltconfig6
1 files changed, 4 insertions, 2 deletions
diff --git a/ltconfig b/ltconfig
index fb0bf8b..7130a6f 100755
--- a/ltconfig
+++ b/ltconfig
@@ -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
;;