From: Paul Eggert Date: Fri, 19 Apr 2002 20:54:45 +0000 (+0000) Subject: Use 'case' statement to work around ${1+"$@"} problem with Zsh. X-Git-Tag: Release-1-6-1b~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a3333dd489895a8914daff98711c21400b483ff;p=thirdparty%2Fautomake.git Use 'case' statement to work around ${1+"$@"} problem with Zsh. --- diff --git a/aclocal.in b/aclocal.in index 89e7c5a66..b19e185a8 100644 --- a/aclocal.in +++ b/aclocal.in @@ -2,12 +2,12 @@ # -*- perl -*- # @configure_input@ -eval 'exec @PERL@ -S $0 ${1+"$@"}' +eval 'case $# in 0) exec @PERL@ -S "$0";; *) exec @PERL@ -S "$0" "$@";; esac' if 0; # aclocal - create aclocal.m4 by scanning configure.ac -# Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002 # Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify diff --git a/automake.in b/automake.in index 86bd18977..d8a73e31e 100755 --- a/automake.in +++ b/automake.in @@ -2,11 +2,11 @@ # -*- perl -*- # @configure_input@ -eval 'exec @PERL@ -S $0 ${1+"$@"}' +eval 'case $# in 0) exec @PERL@ -S "$0";; *) exec @PERL@ -S "$0" "$@";; esac' if 0; # automake - create Makefile.in from Makefile.am -# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 # Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify diff --git a/lib/ylwrap b/lib/ylwrap index e8abf8273..71e522500 100755 --- a/lib/ylwrap +++ b/lib/ylwrap @@ -1,6 +1,9 @@ #! /bin/sh # ylwrap - wrapper for lex/yacc invocations. -# Copyright 1996, 1997, 1998, 1999, 2001 Free Software Foundation, Inc. +# +# Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002 Free Software +# Foundation, Inc. +# # Written by Tom Tromey . # # This program is free software; you can redistribute it and/or modify @@ -71,7 +74,10 @@ mkdir $dirname || exit 1 cd $dirname -$prog ${1+"$@"} "$input" +case $# in + 0) $prog "$input" ;; + *) $prog "$@" "$input" ;; +esac status=$? if test $status -eq 0; then