From: Paul Eggert Date: Fri, 19 Apr 2002 20:55:59 +0000 (+0000) Subject: No need for ${1+"$@"} workaround, as the command is never invoked with X-Git-Tag: Release-1-6b~123 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=067ec00472439956049ede404110c5976e2fa8bf;p=automake.git No need for ${1+"$@"} workaround, as the command is never invoked with zero arguments. The workaround breaks with Zsh, so go back to "$@". --- diff --git a/lib/missing b/lib/missing index dd583709..6a37006e 100755 --- a/lib/missing +++ b/lib/missing @@ -1,6 +1,6 @@ #! /bin/sh # Common stub for a few missing GNU programs while installing. -# Copyright 1996, 1997, 1999, 2000 Free Software Foundation, Inc. +# Copyright (C) 1996, 1997, 1999, 2000, 2002 Free Software Foundation, Inc. # Originally by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify @@ -293,23 +293,23 @@ WARNING: \`$1' is missing on your system. You should only need it if # Look for gnutar/gtar before invocation to avoid ugly error # messages. if (gnutar --version > /dev/null 2>&1); then - gnutar ${1+"$@"} && exit 0 + gnutar "$@" && exit 0 fi if (gtar --version > /dev/null 2>&1); then - gtar ${1+"$@"} && exit 0 + gtar "$@" && exit 0 fi firstarg="$1" if shift; then case "$firstarg" in *o*) firstarg=`echo "$firstarg" | sed s/o//` - tar "$firstarg" ${1+"$@"} && exit 0 + tar "$firstarg" "$@" && exit 0 ;; esac case "$firstarg" in *h*) firstarg=`echo "$firstarg" | sed s/h//` - tar "$firstarg" ${1+"$@"} && exit 0 + tar "$firstarg" "$@" && exit 0 ;; esac fi