fish-shell/tests/count.in
Kurtis Rader 80df9053b3 count -h should report 1
The count command should not treat any flag specially. Not even `-h` and
`--help`. It should simply return a count of the number of arguments it
received.

Fixes #4189
2017-07-05 17:24:34 -07:00

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