diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2016-01-12 15:20:39 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2016-01-12 15:21:28 -0800 |
commit | 8c4223e2f1a3180d0836e29e136b41ce0e7afe72 (patch) | |
tree | ae754f276d13cd06dfd5a037811cd75e6ee30e70 /build-aux/useless-if-before-free | |
parent | 3f89681acc0abf7d2d6a6893ab00c3f7e25cced1 (diff) | |
download | gnulib-8c4223e2f1a3180d0836e29e136b41ce0e7afe72.tar.gz |
Port "$@" to OpenIndiana ksh93
In http://lists.gnu.org/archive/html/bug-autoconf/2015-12/msg00000.html
Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
(derived from ksh 93t+ 2010-03-05). ${1+"$@"} works around an ancient
bug long-dead shells, so remove the workaround.
* build-aux/announce-gen, build-aux/do-release-commit-and-tag:
* build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
* build-aux/prefix-gnulib-mk, build-aux/update-copyright:
* build-aux/useless-if-before-free, tests/test-update-copyright.sh:
Use "$@" instead of ${1+"$@"}.
Diffstat (limited to 'build-aux/useless-if-before-free')
-rwxr-xr-x | build-aux/useless-if-before-free | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build-aux/useless-if-before-free b/build-aux/useless-if-before-free index 80412c5b5b..1899b1ffd8 100755 --- a/build-aux/useless-if-before-free +++ b/build-aux/useless-if-before-free @@ -1,10 +1,10 @@ -eval '(exit $?0)' && eval 'exec perl -wST "$0" ${1+"$@"}' +eval '(exit $?0)' && eval 'exec perl -wST "$0" "$@"' & eval 'exec perl -wST "$0" $argv:q' if 0; # Detect instances of "if (p) free (p);". # Likewise "if (p != 0)", "if (0 != p)", or with NULL; and with braces. -my $VERSION = '2016-01-11 22:04'; # UTC +my $VERSION = '2016-01-12 23:13'; # UTC # The definition above must lie within the first 8 lines in order # for the Emacs time-stamp write hook (at end) to update it. # If you change this file with Emacs, please let the write hook |