t7508: avoid non-portable sed expression
[gitweb.git] / t / t7508-status.sh
index 9bf97017c090386b7cae6bfbc9b3f9caeb83bdab..d8c531da765009b3b2261f1263a399b1d4c2a8b5 100755 (executable)
@@ -61,7 +61,8 @@ test_expect_success 'status (1)' '
 '
 
 strip_comments () {
-       sed "s/^\# //; s/^\#$//; s/^#\t/\t/" <"$1" >"$1".tmp &&
+       tab='   '
+       sed "s/^\# //; s/^\#$//; s/^#$tab/$tab/" <"$1" >"$1".tmp &&
        rm "$1" && mv "$1".tmp "$1"
 }