diff --git a/test/colored-output.sh b/test/colored-output.sh index 349e2cb..afc1bb3 100755 --- a/test/colored-output.sh +++ b/test/colored-output.sh @@ -5,13 +5,13 @@ cd ${CURR_DIR}/1-exec-simple # Test --colors=off disabling colors correctly -${DUB} build --colors=off --compiler=${DC} 2>&1 | { ! grep -P '\e\[' -c; } +${DUB} build --colors=off --compiler=${DC} 2>&1 | { ! \grep $'^\x1b\[' -c; } -# Test --colors=auto detecting no TTY -${DUB} build --colors=auto --compiler=${DC} 2>&1 | { ! grep -P '\e\[' -c; } +# Test --colors=automatic detecting no TTY +${DUB} build --colors=automatic --compiler=${DC} 2>&1 | { ! \grep $'^\x1b\[' -c; } -# Test no --colors= option defaulting to auto -${DUB} build --compiler=${DC} 2>&1 | { ! grep -P '\e\[' -c; } +# Test no --colors= option defaulting to automatic +${DUB} build --compiler=${DC} 2>&1 | { ! \grep $'^\x1b\[' -c; } # Test --colors=on enabling colors in any case -${DUB} build --colors=on --compiler=${DC} 2>&1 | grep -P '\e\[' -c +${DUB} build --colors=on --compiler=${DC} 2>&1 | \grep $'^\x1b\[' -c