diff options
author | Jim Meyering <jim@meyering.net> | 1996-04-21 04:11:43 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-04-21 04:11:43 +0000 |
commit | 7d956ece8cd718d895a1920f0acdd9f32a7cc691 (patch) | |
tree | 461353616694fea3b913019d50bc2cb5f9ba40ef /src | |
parent | ee708ff4aaf7ecf857431955a10600cd5be7774f (diff) | |
download | coreutils-7d956ece8cd718d895a1920f0acdd9f32a7cc691.tar.xz |
(decode_switches): Use getenv (POSIXLY_CORRECT), not undefined posix_pedantic.
Diffstat (limited to 'src')
-rw-r--r-- | src/ls.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) |