Port "$@" to OpenIndiana ksh93
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 12 Jan 2016 23:20:39 +0000 (15:20 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 12 Jan 2016 23:21:28 +0000 (15:21 -0800)
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+"$@"}.

ChangeLog
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

index 7b18ce564691c1df7eea5227011191acc09296d0..c93e8a9b0db13c8a6530c8acf02bac9cdc60c670 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,16 @@
 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
 
+       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+"$@"}.
+
        Port Universal Time settings to strict POSIX
        * build-aux/announce-gen, build-aux/bootstrap:
        * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
index 9bd56e6376d5e41175e129d458c5650f8610809c..b461174598c8b5fa609ca29d3825c9636479550b 100755 (executable)
@@ -1,9 +1,9 @@
-eval '(exit $?0)' && eval 'exec perl -wS "$0" ${1+"$@"}'
+eval '(exit $?0)' && eval 'exec perl -wS "$0" "$@"'
   & eval 'exec perl -wS "$0" $argv:q'
     if 0;
 # Generate a release announcement message.
 
-my $VERSION = '2016-01-11 22:03'; # UTC
+my $VERSION = '2016-01-12 23:09'; # 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
index 7441dbdb7c9d94b46eb50435dcb206e11a06d159..b4f3251f8c8f4a599b74be39b28b6e0b18429a8c 100755 (executable)
@@ -3,7 +3,7 @@
 # controlled .prev-version file, automate the procedure by which we record
 # the date, release-type and version string in the NEWS file.  That commit
 # will serve to identify the release, so apply a signed tag to it as well.
-VERSION=2016-01-11.22 # UTC
+VERSION=2016-01-12.23 # UTC
 
 # Note: this is a bash script (could be zsh or dash)
 
@@ -94,7 +94,7 @@ do
       opt=$(echo "$1" | sed -e 's/=.*//')
       val=$(echo "$1" | sed -e 's/[^=]*=//')
       shift
-      set dummy "$opt" "$val" ${1+"$@"}; shift
+      set dummy "$opt" "$val" "$@"; shift
       ;;
   esac
 
index a42650478a2ecb5e1fb29b79f695aca0e03956f5..a2513d0efc702b4bc4ee149dc278027d935d3052 100755 (executable)
@@ -1,9 +1,9 @@
-eval '(exit $?0)' && eval 'exec perl -wS "$0" ${1+"$@"}'
+eval '(exit $?0)' && eval 'exec perl -wS "$0" "$@"'
   & eval 'exec perl -wS "$0" $argv:q'
     if 0;
 # Convert git log output to ChangeLog format.
 
-my $VERSION = '2016-01-11 22:04'; # UTC
+my $VERSION = '2016-01-12 23:09'; # 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
index 1684f5e5b5804e71ac889a3c9c9babde5f644789..ec2116852c77876870684b85aa9ed4416b26466e 100755 (executable)
@@ -2,7 +2,7 @@
 # Run this after each non-alpha release, to update the web documentation at
 # http://www.gnu.org/software/$pkg/manual/
 
-VERSION=2016-01-11.22; # UTC
+VERSION=2016-01-12.23; # UTC
 
 # Copyright (C) 2009-2016 Free Software Foundation, Inc.
 
@@ -117,7 +117,7 @@ do
       opt=$(echo "$1" | sed -e 's/=.*//')
       val=$(echo "$1" | sed -e 's/[^=]*=//')
       shift
-      set dummy "$opt" "$val" ${1+"$@"}; shift
+      set dummy "$opt" "$val" "$@"; shift
       ;;
   esac
 
index e6b91bf5fd4cd277d86b2d183630ab219672f14d..62caca8d748397d597696e9cea0bec8bb65eec50 100755 (executable)
@@ -1,4 +1,4 @@
-eval '(exit $?0)' && eval 'exec perl -wS "$0" ${1+"$@"}'
+eval '(exit $?0)' && eval 'exec perl -wS "$0" "$@"'
   & eval 'exec perl -wS "$0" $argv:q'
     if 0;
 
index 8c6ee1fdd3cca51efd94c1d2518393e6fc79eeab..17ee6b14d1155e2185756bdb3b79de43ef6c3af2 100755 (executable)
@@ -1,9 +1,9 @@
-eval '(exit $?0)' && eval 'exec perl -wS -0777 -pi "$0" ${1+"$@"}'
+eval '(exit $?0)' && eval 'exec perl -wS -0777 -pi "$0" "$@"'
   & eval 'exec perl -wS -0777 -pi "$0" $argv:q'
     if 0;
 # Update an FSF copyright year list to include the current year.
 
-my $VERSION = '2016-01-11.22:04'; # UTC
+my $VERSION = '2016-01-12.23:13'; # UTC
 
 # Copyright (C) 2009-2016 Free Software Foundation, Inc.
 #
index 80412c5b5b4b16ba48ea9d0df27d8fa6d1e39c90..1899b1ffd82f1c3a0ac7cadc87fac7a6523d6675 100755 (executable)
@@ -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
index faa3c87e9a913b8d3f92d1631961a9f75aae79b3..cd4886abccde23dd419151f81c2bf270faa4e261 100755 (executable)
@@ -37,7 +37,7 @@ trap 'rm -f $TMP_BASE*' 0 1 2 3 15
 TMP=$TMP_BASE
 s=$TMP-script
 cat <<\EOF > $s
-eval '(exit $?0)' && eval 'exec perl -wS -0777 -pi "$0" ${1+"$@"}'
+eval '(exit $?0)' && eval 'exec perl -wS -0777 -pi "$0" "$@"'
   & eval 'exec perl -wS -0777 -pi "$0" $argv:q'
     if 0;
 s/a/b/