about summary refs log tree commit diff
path: root/Src/init.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-12-12 13:46:35 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-12-12 13:46:35 +0000
commit765f73823ec2aca73bc64db25d28d28df8d13e04 (patch)
treeff054ac2057ec4b9e05b088dbe582decfa5110ad /Src/init.c
parent2214e05722e017acda5779db4a48d801d19a9189 (diff)
downloadzsh-765f73823ec2aca73bc64db25d28d28df8d13e04.tar.gz
zsh-765f73823ec2aca73bc64db25d28d28df8d13e04.tar.xz
zsh-765f73823ec2aca73bc64db25d28d28df8d13e04.zip
users/12305: option output not well documented
-c and SHIN_STDIN inconsistent with manual
Diffstat (limited to 'Src/init.c')
-rw-r--r--Src/init.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Src/init.c b/Src/init.c
index bd582ad2b..a653de7de 100644
--- a/Src/init.c
+++ b/Src/init.c
@@ -272,7 +272,6 @@ parseargs(char **argv)
 		/* -c command */
 		cmd = *argv;
 		opts[INTERACTIVE] &= 1;
-		opts[SHINSTDIN] = 0;
 		scriptname = ztrdup("zsh");
 	    } else if (**argv == 'o') {
 		if (!*++*argv)
@@ -334,7 +333,7 @@ parseargs(char **argv)
 	}
 	while (*argv)
 	    zaddlinknode(paramlist, ztrdup(*argv++));
-    } else
+    } else if (!cmd)
 	opts[SHINSTDIN] = 1;
     if(isset(SINGLECOMMAND))
 	opts[INTERACTIVE] &= 1;