From: Paul Eggert Date: Fri, 19 Apr 2002 20:53:17 +0000 (+0000) Subject: Use 'case' statement to work around ${1+"$@"} problem with Zsh. X-Git-Tag: Release-1-6b~124 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=7b0094b769b07bcb0e33564cd1e3f7ef5ec68e0c;p=automake.git Use 'case' statement to work around ${1+"$@"} problem with Zsh. --- diff --git a/aclocal.in b/aclocal.in index 89e7c5a6..b19e185a 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 86bd1897..d8a73e31 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 e8abf827..71e52250 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