Don't abort for invalid input, print an error message instead.
[deliverable/binutils-gdb.git] / ltconfig
index fb0bf8b8b181b785402a541da2b61c08c77bb0e7..7130a6f570baa08ef81f5ab89e327e262533da99 100755 (executable)
--- 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
     ;;
This page took 0.023283 seconds and 4 git commands to generate.