Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
t7508: avoid non-portable sed expression
[gitweb.git]
/
t
/
t7508-status.sh
diff --git
a/t/t7508-status.sh
b/t/t7508-status.sh
index 9bf97017c090386b7cae6bfbc9b3f9caeb83bdab..d8c531da765009b3b2261f1263a399b1d4c2a8b5 100755
(executable)
--- a/
t/t7508-status.sh
+++ b/
t/t7508-status.sh
@@
-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"
}