From ac50fbac377e32b98d2de396f016ea81e8ee9961 Mon Sep 17 00:00:00 2001 From: Chet Ramey Date: Wed, 26 Feb 2014 09:36:43 -0500 Subject: Bash-4.3 distribution sources and documentation --- examples/loadables/sleep.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'examples/loadables/sleep.c') diff --git a/examples/loadables/sleep.c b/examples/loadables/sleep.c index a9bd36f..736c8af 100644 --- a/examples/loadables/sleep.c +++ b/examples/loadables/sleep.c @@ -66,6 +66,10 @@ WORD_LIST *list; return(EX_USAGE); } + /* Skip over `--' */ + if (list->word && ISOPTION (list->word->word, '-')) + list = list->next; + if (*list->word->word == '-' || list->next) { builtin_usage (); return (EX_USAGE); -- cgit v1.2.3