aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2021-01-29 03:01:12 +0000
committerKyle Evans <kevans@FreeBSD.org>2021-01-29 03:02:58 +0000
commitbf59049c27ef86669a94ffd43f7216107b5c57ff (patch)
treea349e2b0a6a7d3152cd295dbaee20890bfa67311
parent0f919ed4ae4df082eefb517afe02752b1790afd3 (diff)
downloadsrc-bf59049c27ef86669a94ffd43f7216107b5c57ff.tar.gz
src-bf59049c27ef86669a94ffd43f7216107b5c57ff.zip
du: tests: use dollar-single quotes where appropriate
No need for "foo$(printf "\t")", $'\t' is both more readable and still functional. Reported-by: Jamie Landeg-Jones <jamie@catflap.org>
-rwxr-xr-xusr.bin/du/tests/du_test.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/du/tests/du_test.sh b/usr.bin/du/tests/du_test.sh
index 92a26deae02b..1c283b58fef4 100755
--- a/usr.bin/du/tests/du_test.sh
+++ b/usr.bin/du/tests/du_test.sh
@@ -46,7 +46,7 @@ H_flag_body()
{
local paths1='testdir/A/B testdir/A testdir/C testdir'
local paths2='testdir/C/B testdir/C'
- local lineprefix="^[0-9]+$(printf "\t")"
+ local lineprefix=$'^[0-9]+\t'
local sep="\$\n${lineprefix}"
atf_check mkdir testdir