diff options
Diffstat (limited to 'examples/loadables/sleep.c')
-rw-r--r-- | examples/loadables/sleep.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |