diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-04-24 04:16:37 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-04-24 04:16:37 +0200 |
commit | 99b29e6fd6d448130882065b7fad87b1fe09727a (patch) | |
tree | afc77e6023216d2c588584c770a03312f39f978c /tests/t0500-find.sh | |
parent | cd034e872d1a273961ef5612239d5e8168eb8843 (diff) | |
download | pass-99b29e6fd6d448130882065b7fad87b1fe09727a.tar.gz pass-99b29e6fd6d448130882065b7fad87b1fe09727a.tar.bz2 pass-99b29e6fd6d448130882065b7fad87b1fe09727a.zip |
tests: sed doesn't like escaped chars on non-gnu
Diffstat (limited to '')
-rwxr-xr-x | tests/t0500-find.sh | 2 |
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 |