cat: fix cat -e and cat -v erroneously numbering 1st line
function old new delta cat_main 418 421 +3 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
21
testsuite/cat.tests
Executable file
21
testsuite/cat.tests
Executable file
@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Copyright 2018 by Denys Vlasenko <vda.linux@googlemail.com>
|
||||
# Licensed under GPLv2, see file LICENSE in this source tree.
|
||||
|
||||
. ./testing.sh
|
||||
|
||||
# testing "description" "command" "result" "infile" "stdin"
|
||||
testing 'cat -e' \
|
||||
'cat -e' \
|
||||
'foo$\n' \
|
||||
'' \
|
||||
'foo\n'
|
||||
|
||||
testing 'cat -v' \
|
||||
'cat -v' \
|
||||
'foo\n' \
|
||||
'' \
|
||||
'foo\n'
|
||||
|
||||
exit $FAILCOUNT
|
Reference in New Issue
Block a user