projects
/
platform
/
upstream
/
bash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Bash-4.3 distribution sources and documentation
[platform/upstream/bash.git]
/
examples
/
loadables
/
sleep.c
diff --git
a/examples/loadables/sleep.c
b/examples/loadables/sleep.c
index
a9bd36f
..
736c8af
100644
(file)
--- 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);