m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2014-04-24 04:16:37 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2014-04-24 04:16:37 +0200
commit99b29e6fd6d448130882065b7fad87b1fe09727a (patch)
treeafc77e6023216d2c588584c770a03312f39f978c
parentcd034e872d1a273961ef5612239d5e8168eb8843 (diff)
tests: sed doesn't like escaped chars on non-gnu
-rwxr-xr-xtests/t0500-find.sh2
1 files changed, 1 insertions, 1 deletions
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