]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: numfmt: use the printf program, not the shell builtin
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 26 May 2013 22:06:00 +0000 (00:06 +0200)
committerPádraig Brady <P@draigBrady.com>
Sun, 26 May 2013 23:24:00 +0000 (00:24 +0100)
* tests/misc/numfmt.pl: Avoid a spurious failure when
/bin/sh is dash (as can happen on Debian systems).

tests/misc/numfmt.pl

index 61917fb8a6a7df8072344bc5ccb43fcc23b5b814..553f68b2b9d5d23730de75add535d5f6c0461990 100644 (file)
@@ -887,7 +887,7 @@ if ($locale ne 'C')
   {
     # Reset locale to 'C' if LOCALE_FR_UTF8 doesn't output as expected
     # as determined by the separate printf program.
-    open(LOC_NUM, "LC_ALL=$locale printf \"%'d\" 1234|")
+    open(LOC_NUM, "env LC_ALL=$locale printf \"%'d\" 1234|")
       or die "Can't fork command: $!";
     my $loc_num = <LOC_NUM>;
     close(LOC_NUM) || die "Failed to read grouped number from printf";