]> code.delx.au - gnu-emacs/commitdiff
Port "$@" to OpenIndiana ksh93
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 25 Jan 2016 01:27:52 +0000 (17:27 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 25 Jan 2016 01:29:01 +0000 (17:29 -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 in long-dead shells, so remove the workaround.
* admin/check-doc-strings, configure.ac, lib-src/rcs2log:
Use plain "$@" rather than ${1+"$@"}.

admin/check-doc-strings
configure.ac
lib-src/rcs2log

index 13e8b0cd8e71fb66195cd63ad7d2e6d359670536..63856d32871cf44653805271c752a6b55ab3901d 100755 (executable)
@@ -1,5 +1,5 @@
 : #-*- Perl -*-
-eval 'exec perl -S $0 ${1+"$@"}' # Portability kludge
+eval 'exec perl -S $0 "$@"' # Portability kludge
     if 0;
 
 # Author: Martin Buchholz
@@ -299,4 +299,3 @@ foreach my $fun (sort keys %texi_funtype) {
     print "nuke-this-doc: $fun $texi_funtype{$fun}\n";
   }
 }
-
index 76193fae6dd61d4448b3a304d3a0e4978afb810e..7a3d4d928319870a237d1d1e71e8272e65e6ee6a 100644 (file)
@@ -33,7 +33,7 @@ emacs_config_options=
 optsep=
 dnl This is the documented way to record the args passed to configure,
 dnl rather than $ac_configure_args.
-for opt in ${1+"$@"} CFLAGS CPPFLAGS LDFLAGS; do
+for opt in "$@" CFLAGS CPPFLAGS LDFLAGS; do
   case $opt in
     -n | --no-create | --no-recursion)
       continue ;;
index 73213c5a37bd0a526d979cc514963bf750756d56..ff4d470a21a6a1e62e0540867d76026d045710a4 100755 (executable)
@@ -403,8 +403,8 @@ case $rlogfile in
        esac
 
        case $datearg in
-       ?*) $rlog $rlog_options "$datearg" ${1+"$@"} >$rlogfile;;
-       '') $rlog $rlog_options ${1+"$@"} >$rlogfile;;
+       ?*) $rlog $rlog_options "$datearg" "$@" >$rlogfile;;
+       '') $rlog $rlog_options "$@" >$rlogfile;;
        esac || exit;;
 esac