logo

utils-std

Collection of commonly available Unix tools
commit: 0d0a25ab520f2f244a8f2c59d4b0d1b211be39e3
parent bf456c133eebac0a5d6f30d952eb81f01752482c
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed, 31 Jul 2024 13:48:52 +0200

test-cmd: Get rid of remaining dollar-quote strings

Diffstat:

Mtest-cmd/chmod.sh3++-
Mtest-cmd/unlink.sh3++-
Mtest-cmd/yes.t3+--
3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/test-cmd/chmod.sh b/test-cmd/chmod.sh @@ -25,6 +25,7 @@ t '0444' "-v 0444 $tmpfile" "chmod: Permissions changed from 00000/---------- to t '0777' "-v 0777 $tmpfile" "chmod: Permissions changed from 00444/-r--r--r-- to 00777/-rwxrwxrwx for '${tmpfile}' " -t --exit=1 'invalid 0888' "-v 0888 $tmpfile" "chmod: Failed parsing mode '0888': contains digit outside of [0-7]"$'\n' +t --exit=1 'invalid 0888' "-v 0888 $tmpfile" "chmod: Failed parsing mode '0888': contains digit outside of [0-7] +" rm "$tmpfile" || exit 1 diff --git a/test-cmd/unlink.sh b/test-cmd/unlink.sh @@ -10,4 +10,5 @@ touch unlink-this t basic 'unlink-this' '' rm -f unlink-this || exit 1 -t --exit=1 enoent /var/empty/e/no/ent $'unlink: Cannot unlink ‘/var/empty/e/no/ent’: No such file or directory\n' +t --exit=1 enoent /var/empty/e/no/ent 'unlink: Cannot unlink ‘/var/empty/e/no/ent’: No such file or directory +' diff --git a/test-cmd/yes.t b/test-cmd/yes.t @@ -15,10 +15,9 @@ foo foo foo - $ yes $'foo\nbar\n' | head -n 5 + $ yes "$(printf 'foo\nbar')" | head -n 4 foo bar - foo bar