bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#21325: ls : feature request --width=zero


From: Paul Eggert
Subject: bug#21325: ls : feature request --width=zero
Date: Tue, 20 Oct 2015 09:31:28 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

Pádraig Brady wrote:
If a limit, then 0 naturally implies no limit. If a length, then 0 is 
meaningless.

It's not meaningless. It means length 0. Length -1 would be meaningless.

That being said, I'm tired of fighting this issue, so please feel free to go ahead and have 0 mean infinity to the user. But surely this can be done better than to have SIZE_MAX mean infinity internally. Just use 0 to mean infinity; that's less confusing, if that's what 0 means externally. In other words, use SIZE_MAX to stand only for itself, and use 0 to stand for infinity.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]