From: Jim Meyering Date: Sun, 21 Apr 1996 04:11:43 +0000 (+0000) Subject: (decode_switches): Use getenv (POSIXLY_CORRECT), not undefined posix_pedantic. X-Git-Tag: FILEUTILS-3_12l~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d956ece8cd718d895a1920f0acdd9f32a7cc691;p=thirdparty%2Fcoreutils.git (decode_switches): Use getenv (POSIXLY_CORRECT), not undefined posix_pedantic. --- diff --git a/src/ls.c b/src/ls.c index 8b524d9549..5f56e857e3 100644 --- a/src/ls.c +++ b/src/ls.c @@ -727,8 +727,10 @@ decode_switches (int argc, char **argv) } #endif + /* TABSIZE is not POSIX-approved. + Ignore it when POSIXLY_CORRECT is set. */ tabsize = 8; - if (!posix_pedantic && (p = getenv ("TABSIZE"))) + if (getenv ("POSIXLY_CORRECT") == 0 && (p = getenv ("TABSIZE"))) { if (xstrtol (p, NULL, 0, &tmp_long, NULL) == LONGINT_OK && 0 < tmp_long && tmp_long <= INT_MAX)