From 36d228b12934000cf11690b4365c144ef55c905f Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 28 Oct 2008 20:55:22 +0000 Subject: 25937: builtins with no options should still ignore -- --- Src/builtin.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Src') 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 */ -- cgit 1.4.1