No need for ${1+"$@"} workaround, as the command is never invoked with
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 19 Apr 2002 20:58:51 +0000 (20:58 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 19 Apr 2002 20:58:51 +0000 (20:58 +0000)
zero arguments.  The workaround breaks with Zsh.

tests/ccnoco.test

index ef0cfc6..319f6ba 100755 (executable)
@@ -50,7 +50,7 @@ case "$@" in
     ;;
 esac
 
-exec gcc ${1+"$@"}
+exec gcc "$@"
 END
 
 chmod +x Mycomp