diff options
author | Ben Walton <bdwalton@gmail.com> | 2012-10-25 16:58:19 +0100 |
---|---|---|
committer | Jeff King <peff@peff.net> | 2012-10-26 08:38:15 -0400 |
commit | db7fde9caeb9f9d9bc30a5a751a1618509c8a2f9 (patch) | |
tree | 77c1f67aa83841802702e147e426ab7a7c331d18 /t | |
parent | cvsserver status: provide real sticky info (diff) | |
download | tgif-db7fde9caeb9f9d9bc30a5a751a1618509c8a2f9.tar.xz |
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 <bdwalton@gmail.com>
Signed-off-by: Jeff King <peff@peff.net>
Diffstat (limited to 't')
-rwxr-xr-x | t/t9401-git-cvsserver-crlf.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t9401-git-cvsserver-crlf.sh b/t/t9401-git-cvsserver-crlf.sh index cdb8360314..1c5bc84fa7 100755 --- a/t/t9401-git-cvsserver-crlf.sh +++ b/t/t9401-git-cvsserver-crlf.sh @@ -46,7 +46,7 @@ check_status_options() { echo "Error from cvs status: $1 $2" >> "${WORKDIR}/marked.log" return 1; fi - got="$(sed -n -e 's/^\s*Sticky Options:\s*//p' "${WORKDIR}/status.out")" + got="$(sed -n -e 's/^[ ]*Sticky Options:[ ]*//p' "${WORKDIR}/status.out")" expect="$3" if [ x"$expect" = x"" ] ; then expect="(none)" |