mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-27 11:43:37 +08:00
18 lines
250 B
Fish
18 lines
250 B
Fish
|
# Validate the behavior of the `count` command.
|
||
|
|
||
|
echo '# no args'
|
||
|
count
|
||
|
|
||
|
echo '# one args'
|
||
|
count x
|
||
|
|
||
|
echo '# two args'
|
||
|
count x y
|
||
|
|
||
|
echo '# args that look like flags or are otherwise special'
|
||
|
count -h
|
||
|
count --help
|
||
|
count --
|
||
|
count -- abc
|
||
|
count def -- abc
|