]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: stty.sh: skip on systems without perl
authorPádraig Brady <P@draigBrady.com>
Sun, 10 Apr 2022 14:47:52 +0000 (15:47 +0100)
committerPádraig Brady <P@draigBrady.com>
Sun, 10 Apr 2022 14:48:29 +0000 (15:48 +0100)
* init.cfg (stty_reversible_init_): Add require_perl_
to ensure we skip rather than error, without perl.

init.cfg

index 310ff055d18f009914a6e2997ce8d96961e2e3a8..eb57de2643eb5c3e7db1af0def9db3dd1e78c1dc 100644 (file)
--- a/init.cfg
+++ b/init.cfg
@@ -384,6 +384,7 @@ rwx_to_mode_()
 # with a space.
 stty_reversible_init_()
 {
+  require_perl_
   # Pad start with one space for the first option to match in query function.
   stty_reversible_=' '$(perl -lne '/^ *{"(.*?)",.*\bREV\b/ and print $1' \
     "$abs_top_srcdir"/src/stty.c | tr '\n' ' ')