From 99b29e6fd6d448130882065b7fad87b1fe09727a Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 24 Apr 2014 04:16:37 +0200 Subject: tests: sed doesn't like escaped chars on non-gnu --- tests/t0500-find.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/t0500-find.sh b/tests/t0500-find.sh index 03ba1fd..5c2cc5b 100755 --- a/tests/t0500-find.sh +++ b/tests/t0500-find.sh @@ -12,7 +12,7 @@ test_expect_success 'Make sure find resolves correct files' ' "$PASS" generate Fishthings 122 && "$PASS" generate Fishies/stuff 21 && "$PASS" generate Fishies/otherstuff 1234 && - [[ $("$PASS" find fish | sed "s/^[ \`|-]*//g;s/\\x1B\\[[0-9;]*[a-zA-Z]//g" | tr "\\n" -) == "Search Terms: fish-Fish-Fishies-otherstuff-stuff-Fishthings-" ]] + [[ $("$PASS" find fish | sed "s/^[ \`|-]*//g;s/$(printf \\x1b)\\[[0-9;]*[a-zA-Z]//g" | tr "\\n" -) == "Search Terms: fish-Fish-Fishies-otherstuff-stuff-Fishthings-" ]] ' test_done -- cgit v1.2.3