mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-02-10 17:31:56 +02:00
tests: printf: add case for quoting single quotes
* tests/printf/printf-quote.sh: Add a test case for https://bugs.debian.org/992161 which was fixed with gnulib commit v0.1-7339-g07b31a9465
This commit is contained in:
@@ -22,7 +22,8 @@ print_ver_ printf
|
||||
prog='env printf'
|
||||
|
||||
# Equivalent output to ls --quoting=shell-escape
|
||||
$prog '%q\n' '' "'" a 'a b' '~a' 'a~' "$($prog %b 'a\r')" > out
|
||||
$prog '%q\n' '' "'" a 'a b' '~a' 'a~' \
|
||||
"$($prog %b 'a\r')" "$($prog "\001'\001")" > out
|
||||
cat <<\EOF > exp || framework_failure_
|
||||
''
|
||||
"'"
|
||||
@@ -31,6 +32,7 @@ a
|
||||
'~a'
|
||||
a~
|
||||
'a'$'\r'
|
||||
''$'\001'\'''$'\001'
|
||||
EOF
|
||||
compare exp out || fail=1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user