mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-24 02:05:30 +08:00
add unit test for echo -h
This commit is contained in:
parent
82f5fb507d
commit
2302db4dc7
|
@ -114,7 +114,8 @@ begin ; echo is_stdout ; end 2>| cat > /dev/null
|
|||
begin ; echo is_stderr 1>&2 ; end 2>| cat > /dev/null
|
||||
|
||||
# echo tests
|
||||
|
||||
echo
|
||||
echo '# echo tests'
|
||||
echo 'abc\ndef'
|
||||
echo -e 'abc\ndef'
|
||||
echo -e 'abc\zdef'
|
||||
|
@ -125,11 +126,9 @@ echo -e 'abc\1212def'
|
|||
echo -e 'abc\cdef' # won't output a newline!
|
||||
echo ''
|
||||
echo -
|
||||
|
||||
echo -h
|
||||
echo -ne '\376' | display_bytes
|
||||
|
||||
echo -e Catch your breath
|
||||
|
||||
echo -e 'abc\x21def'
|
||||
echo -e 'abc\x211def'
|
||||
|
||||
|
|
|
@ -27,6 +27,8 @@ errput
|
|||
output
|
||||
caret_no_redirect 12345^
|
||||
is_stdout
|
||||
|
||||
# echo tests
|
||||
abc\ndef
|
||||
abc
|
||||
def
|
||||
|
@ -37,6 +39,7 @@ abcQdef
|
|||
abcQ2def
|
||||
abc
|
||||
-
|
||||
-h
|
||||
0000000 376
|
||||
0000001
|
||||
Catch your breath
|
||||
|
|
Loading…
Reference in New Issue
Block a user