Skip to content

Commit db7fde9

Browse files
bdwaltonpeff
authored andcommitted
Use character class for sed expression instead of \s
Sed on Mac OS X doesn't handle \s in a sed expressions so use a more portable character set expression instead. Signed-off-by: Ben Walton <[email protected]> Signed-off-by: Jeff King <[email protected]>
1 parent abd66f2 commit db7fde9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t9401-git-cvsserver-crlf.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ check_status_options() {
4646
echo "Error from cvs status: $1 $2" >> "${WORKDIR}/marked.log"
4747
return 1;
4848
fi
49-
got="$(sed -n -e 's/^\s*Sticky Options:\s*//p' "${WORKDIR}/status.out")"
49+
got="$(sed -n -e 's/^[ ]*Sticky Options:[ ]*//p' "${WORKDIR}/status.out")"
5050
expect="$3"
5151
if [ x"$expect" = x"" ] ; then
5252
expect="(none)"

0 commit comments

Comments
 (0)