mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 14:23:09 +00: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
|