[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Possible bug with grep/sed/tail?
From: |
Jim Meyering |
Subject: |
Re: Possible bug with grep/sed/tail? |
Date: |
Tue, 25 Nov 2008 11:20:10 +0100 |
Paolo Bonzini <address@hidden> wrote:
>> So -ol (that's an el) would mean line-buffered stdout?
>> That has to be equivalent to -o -l, and unless you consider
>> ordering and multiple -l options (e.g., "-i -l -o -l" is ugly),
>> then it doesn't let you line-buffer more than one of the three streams.
>
> It would be "+i::o::e::" in getopt parlance; no argument = no buffering,
> argument is "l" = line buffering, argument is numberic = given-size buffer.
Hi Paulo,
When designing new interfaces/tools, it's best to avoid that type of
optional argument. This is partly a user interface consistency issue
(users are used to -il being equivalent to -i -l), and partly that it's
nonstandard: using "::" like that is a GNU getopt extension.
- Re: Possible bug with grep/sed/tail?, (continued)
- Re: Possible bug with grep/sed/tail?, Pádraig Brady, 2008/11/22
- Re: Possible bug with grep/sed/tail?, Jim Meyering, 2008/11/22
- Re: Possible bug with grep/sed/tail?, Brian Dessent, 2008/11/22
- Re: Possible bug with grep/sed/tail?, Jim Meyering, 2008/11/29
- Re: Possible bug with grep/sed/tail?, Pádraig Brady, 2008/11/30
- Re: Possible bug with grep/sed/tail?, Pádraig Brady, 2008/11/24
- Re: Possible bug with grep/sed/tail?, Jim Meyering, 2008/11/24
- Re: Possible bug with grep/sed/tail?, Pádraig Brady, 2008/11/25
- Re: Possible bug with grep/sed/tail?, Jim Meyering, 2008/11/25
- Re: Possible bug with grep/sed/tail?, Paolo Bonzini, 2008/11/25
- Re: Possible bug with grep/sed/tail?,
Jim Meyering <=
- Re: Possible bug with grep/sed/tail?, Paolo Bonzini, 2008/11/25
- Re: Possible bug with grep/sed/tail?, Pádraig Brady, 2008/11/25
- Re: Possible bug with grep/sed/tail?, Pádraig Brady, 2008/11/25
- Re: Possible bug with grep/sed/tail?, Jim Meyering, 2008/11/25
- Re: Possible bug with grep/sed/tail?, Matthew Woehlke, 2008/11/24
- Re: Possible bug with grep/sed/tail?, Paolo Bonzini, 2008/11/21
Re: Possible bug with grep/sed/tail?, Matthew Wakeling, 2008/11/20