[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Rework a problematic use of ${1+"$@"}
From: |
Noah Misch |
Subject: |
Rework a problematic use of ${1+"$@"} |
Date: |
Fri, 4 May 2007 16:12:21 -0700 |
User-agent: |
Mutt/1.5.9i |
Zsh performs field splitting on `${1+"$@"}'; m4sh mostly insulates us from this
fact with `alias -g '${1+"$@"}'='"$@"''. However, this alias is not used if the
parameter expansion is part of a larger word, such as `"foo"${1+"$@"}'. This
patches func_echo to avoid the problem, fixing quote.test on Mac OS X 10.1.
2007-05-04 Noah Misch <address@hidden>
* libltdl/config/general.m4sh (func_echo): Use $* instead of ${1+"$@"}.
diff -urpX dontdiff lt-bootstrap/libltdl/config/general.m4sh
lt-echozsh/libltdl/config/general.m4sh
--- lt-bootstrap/libltdl/config/general.m4sh 2007-03-25 07:12:42.000000000
-0500
+++ lt-echozsh/libltdl/config/general.m4sh 2007-05-04 11:07:01.000000000
-0400
@@ -129,7 +129,7 @@ opt_verbose=false
# name if it has been set yet.
func_echo ()
{
- $ECHO "$progname${mode+: }$mode: "${1+"$@"}
+ $ECHO "$progname${mode+: }$mode: $*"
}
# func_verbose arg...
- Rework a problematic use of ${1+"$@"},
Noah Misch <=