Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Feb 2021 03:16:58 GMT
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: ca9e7ac2fbbb - stable/13 - du: tests: use dollar-single quotes where appropriate
Message-ID:  <202102040316.1143GwmV094012@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by kevans:

URL: https://cgit.FreeBSD.org/src/commit/?id=ca9e7ac2fbbbb393a0221ff96ae03f9cac1745b3

commit ca9e7ac2fbbbb393a0221ff96ae03f9cac1745b3
Author:     Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2021-01-29 03:01:12 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2021-02-04 03:16:51 +0000

    du: tests: use dollar-single quotes where appropriate
    
    No need for "foo$(printf "\t")", $'\t' is both more readable and still
    functional.
    
    (cherry picked from commit bf59049c27ef86669a94ffd43f7216107b5c57ff)
---
 usr.bin/du/tests/du_test.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202102040316.1143GwmV094012>