t/regress: color sequences in dash
authorMischa POSLAWSKY <perl@shiar.org>
Wed, 23 Nov 2022 19:39:35 +0000 (20:39 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Sun, 27 Nov 2022 18:21:42 +0000 (19:21 +0100)
Shorthand for escape is a bashism apparently.

t/regress.t

index f6877b1e85169cb126e0c60d1ef63186c444732a..d7961cc79e01e5cd31aa86e37d7a9bd4dd89d60c 100755 (executable)
@@ -10,7 +10,7 @@ colorize=
 test -t 1 && colorize=1
 color () {
        test -n "$colorize" &&
-       printf '\e[%sm' $@
+       printf '\33[%sm' $@
 }
 regenerate=
 diffcmd () {