[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tail --follow=name --follow=descriptor: both allowed?
From: |
Bernhard Voelker |
Subject: |
Re: tail --follow=name --follow=descriptor: both allowed? |
Date: |
Wed, 07 Mar 2012 15:31:34 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120215 Thunderbird/10.0.2 |
On 03/07/2012 03:11 PM, Jim Meyering wrote:
> Bernhard Voelker wrote:
>> For tail, both 'follow' modes are allowed:
>>
>> $ src/tail --follow=name --follow=descriptor /tmp/x
>>
>> It obviously uses the latter option.
>>
>> Should
>> a) this behaviour be documented in the info page?
>> b) tail proceed with a warning?
>> c) such a combination be rejected?
>> d) we do nothing?
>
> Probably (d), since it is common practice for tools to let
> the final mode-selection option override any preceding ones.
> E.g., the -H, -L, -P triple accepted by ch???, cp, du and ls.
>
> Do you think that some would benefit from added documentation?
Probably you're right: it's rather clear when the user passes
"--follow=name --follow=descriptor", but it may become less
obvious when she uses "-F -f".
Have a nice day,
Berny