projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de39754
)
(decode_switches): Ignore value of COLUMNS envionment
author
Jim Meyering
<jim@meyering.net>
Mon, 10 Mar 1997 04:47:32 +0000
(
04:47
+0000)
committer
Jim Meyering
<jim@meyering.net>
Mon, 10 Mar 1997 04:47:32 +0000
(
04:47
+0000)
variable when it is the empty string. Suggestion from Ulrich Drepper.
src/ls.c
patch
|
blob
|
history
diff --git
a/src/ls.c
b/src/ls.c
index
67e3723
..
ec051c2
100644
(file)
--- a/
src/ls.c
+++ b/
src/ls.c
@@
-825,7
+825,7
@@
decode_switches (int argc, char **argv)
quote_as_string = 0;
line_length = 80;
- if ((p = getenv ("COLUMNS")))
+ if ((p = getenv ("COLUMNS"))
&& *p
)
{
if (xstrtol (p, NULL, 0, &tmp_long, NULL) == LONGINT_OK
&& 0 < tmp_long && tmp_long <= INT_MAX)