Bash-4.3 distribution sources and documentation
[platform/upstream/bash.git] / examples / loadables / sleep.c
index a9bd36f..736c8af 100644 (file)
@@ -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);