mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-12 21:18:53 +00:00
add unit test for echo -h
This commit is contained in:
parent
82f5fb507d
commit
2302db4dc7
2 changed files with 6 additions and 4 deletions
|
@ -114,7 +114,8 @@ begin ; echo is_stdout ; end 2>| cat > /dev/null
|
||||||
begin ; echo is_stderr 1>&2 ; end 2>| cat > /dev/null
|
begin ; echo is_stderr 1>&2 ; end 2>| cat > /dev/null
|
||||||
|
|
||||||
# echo tests
|
# echo tests
|
||||||
|
echo
|
||||||
|
echo '# echo tests'
|
||||||
echo 'abc\ndef'
|
echo 'abc\ndef'
|
||||||
echo -e 'abc\ndef'
|
echo -e 'abc\ndef'
|
||||||
echo -e 'abc\zdef'
|
echo -e 'abc\zdef'
|
||||||
|
@ -125,11 +126,9 @@ echo -e 'abc\1212def'
|
||||||
echo -e 'abc\cdef' # won't output a newline!
|
echo -e 'abc\cdef' # won't output a newline!
|
||||||
echo ''
|
echo ''
|
||||||
echo -
|
echo -
|
||||||
|
echo -h
|
||||||
echo -ne '\376' | display_bytes
|
echo -ne '\376' | display_bytes
|
||||||
|
|
||||||
echo -e Catch your breath
|
echo -e Catch your breath
|
||||||
|
|
||||||
echo -e 'abc\x21def'
|
echo -e 'abc\x21def'
|
||||||
echo -e 'abc\x211def'
|
echo -e 'abc\x211def'
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,8 @@ errput
|
||||||
output
|
output
|
||||||
caret_no_redirect 12345^
|
caret_no_redirect 12345^
|
||||||
is_stdout
|
is_stdout
|
||||||
|
|
||||||
|
# echo tests
|
||||||
abc\ndef
|
abc\ndef
|
||||||
abc
|
abc
|
||||||
def
|
def
|
||||||
|
@ -37,6 +39,7 @@ abcQdef
|
||||||
abcQ2def
|
abcQ2def
|
||||||
abc
|
abc
|
||||||
-
|
-
|
||||||
|
-h
|
||||||
0000000 376
|
0000000 376
|
||||||
0000001
|
0000001
|
||||||
Catch your breath
|
Catch your breath
|
||||||
|
|
Loading…
Reference in a new issue