Re: aha! I figured out why journalctl's auto-pager bugs me when git's doesn't (and possible solution)

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

 



On Thu, Oct 18, 2012 at 8:30 PM, Lennart Poettering
<mzerqung@xxxxxxxxxxx> wrote:
> On Thu, 18.10.12 14:05, Matthew Miller (mattdm@xxxxxxxxxxxxxxxxx) wrote:
>
>>  journalctl  -n500 -f
>>
>> (No space allowed after then -n.)
>
> The space thing is really annoying actually. glibc's getopt() insists on
> that for options such as "-n" that have an optional argument (i.e. which
> appear as "n::" in the opt string). I'd love to fix this if somebody has
> an idea to get getopt() to be nice to us here...

Please just don't use optional arguments.
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap12.html
is the closest we have for a consensus on argument handling:
> Guideline 7:
>     Option-arguments should not be optional.

(The glibc behavior is also consistent with 12.1 item 2.)
    Mirek
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux