Re: [hackers] [ubase][PATCH] hwclock: [-rsw] => (-r | -s | -w) and fix flag check

From: Mattias Andrée <maandree_AT_kth.se>
Date: Fri, 22 Apr 2016 11:48:24 +0200

On Fri, 22 Apr 2016 10:07:49 +0100
Dimitris Papastamos <sin_AT_2f30.org> wrote:

> On Fri, Apr 22, 2016 at 03:24:47AM +0200, Mattias Andrée
> wrote:
> > Also in man page: [-r | -s | -w] => (-r | -s | -w)
> >
> > Signed-off-by: Mattias Andrée <maandree_AT_kth.se>
>
> I know this pattern already exists in some core tools.
> Can you clarify why it is clearer? I am not even sure
> what it means anymore. I have never used (-a | -b).
>

[ ] implies that it is optional.
( ) is rarely used, but it does appear on some man pages,
it is only used to imply that the alternation is group.
This is to avoid ambiguity: is the [-u] grouped with
-w or is it grouped with the whole alternation.

Received on Fri Apr 22 2016 - 11:48:24 CEST

This archive was generated by hypermail 2.3.0 : Fri Apr 22 2016 - 12:00:17 CEST