From: Stefano Lattarini Date: Sun, 26 May 2013 22:06:00 +0000 (+0200) Subject: tests: numfmt: use the printf program, not the shell builtin X-Git-Tag: v8.22~137 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba60445f73c00b664b271ca13ad4cac1f9584cb2;p=thirdparty%2Fcoreutils.git tests: numfmt: use the printf program, not the shell builtin * tests/misc/numfmt.pl: Avoid a spurious failure when /bin/sh is dash (as can happen on Debian systems). --- diff --git a/tests/misc/numfmt.pl b/tests/misc/numfmt.pl index 61917fb8a6..553f68b2b9 100644 --- a/tests/misc/numfmt.pl +++ b/tests/misc/numfmt.pl @@ -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 = ; close(LOC_NUM) || die "Failed to read grouped number from printf";