about summary refs log tree commit diff
path: root/Src/builtin.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-10-28 20:55:22 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-10-28 20:55:22 +0000
commit36d228b12934000cf11690b4365c144ef55c905f (patch)
tree9d91cfb3a6fde430da3e085bd64ec8ed6dee000b /Src/builtin.c
parentb77f9505d813016d9ad44e5e9832dcf1fb2a6d03 (diff)
downloadzsh-36d228b12934000cf11690b4365c144ef55c905f.tar.gz
zsh-36d228b12934000cf11690b4365c144ef55c905f.tar.xz
zsh-36d228b12934000cf11690b4365c144ef55c905f.zip
25937: builtins with no options should still ignore --
Diffstat (limited to 'Src/builtin.c')
-rw-r--r--Src/builtin.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Src/builtin.c b/Src/builtin.c
index 003897bb4..837740032 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -391,6 +391,9 @@ execbuiltin(LinkList args, Builtin bn)
 		if (ops.ind['-'])
 		    break;
 	    }
+	} else if (*argv && !strcmp(*argv, "--")) {
+	    ops.ind['-'] = 1;
+	    argv++;
 	}
 
 	/* handle built-in options, for overloaded handler functions */