summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--Src/init.c3
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index d70037525..ad774fbd8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-09-12  Barton E. Schaefer  <schaefer@zsh.org>
+
+	* 33143: Src/init.c: POSIX_ARGZERO more closely matches bash et al.
+
 2014-09-12  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
 	* users/19075: Doc/Zsh/mod_parameter.yo,
@@ -249,7 +253,7 @@
 	Completion/openSUSE/Command/_SuSEconfig ->
 	Completion/openSUSE/Command/_SUSEconfig: rename file.
 
-2014-08-04  Barton E. Schaefer  <schaefer@brasslantern.com>
+2014-08-04  Barton E. Schaefer  <schaefer@zsh.org>
 
 	* Miles Ohlrich: 32958: Src/Zle/compctl.c: bitwise logic fix
 
diff --git a/Src/init.c b/Src/init.c
index 5e92f59df..d536978b9 100644
--- a/Src/init.c
+++ b/Src/init.c
@@ -252,8 +252,9 @@ parseargs(char **argv, char **runscript)
     paramlist = znewlinklist();
     if (*argv) {
 	if (unset(SHINSTDIN)) {
+	    posixzero = *argv;
 	    if (cmd)
-		argzero = posixzero = *argv;
+		argzero = *argv;
 	    else
 		*runscript = *argv;
 	    opts[INTERACTIVE] &= 1;