[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#21325: ls : feature request --width=zero
From: |
Pádraig Brady |
Subject: |
bug#21325: ls : feature request --width=zero |
Date: |
Tue, 20 Oct 2015 19:37:29 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 |
On 20/10/15 17:31, Paul Eggert wrote:
> 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.
Yes it's not ideal. The main reason I'm going with -w0 is for
consistency with base64 and sed etc.
> 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.
Updated patch attached.
thanks,
Pádraig.
ls-w0.patch
Description: Text Data