Justin Pryzby <[EMAIL PROTECTED]> wrote:
> On Sat, Dec 03, 2005 at 07:40:55PM -0700, Bob Proulx wrote:
>> Justin Pryzby wrote:
>> > Please document the behaviour of, for example, sleep 1h 1m 1s.

In case you didn't know, it is documented in the info documentation:

  `sleep' pauses for an amount of time specified by the sum of the values
  of the command line arguments.  Synopsis:

>> This uses the same notation as all of the coreutils commands.  Did you
>> have something else in mind?
>
> Yes; the behaviour.  I know  the ... notation, but I would like to see
> a sentence added which says "If multiple arugments are given, _sleep_
> pauses for a duration given by the sum of the arguments."

Thanks for the suggestion.
I've just done this, upstream:

2005-12-04  Jim Meyering  <[EMAIL PROTECTED]>

        * src/sleep.c (usage): Say what happens with two or more arguments.
        Suggested by Justin Pryzby.

Index: sleep.c
===================================================================
RCS file: /fetish/cu/src/sleep.c,v
retrieving revision 1.92
retrieving revision 1.93
diff -u -p -u -r1.92 -r1.93
--- sleep.c     16 Jun 2005 21:35:40 -0000      1.92
+++ sleep.c     4 Dec 2005 09:58:34 -0000       1.93
@@ -51,7 +51,8 @@ Usage: %s NUMBER[SUFFIX]...\n\
 Pause for NUMBER seconds.  SUFFIX may be `s' for seconds (the default),\n\
 `m' for minutes, `h' for hours or `d' for days.  Unlike most implementations\n\
 that require NUMBER be an integer, here NUMBER may be an arbitrary floating\n\
-point number.\n\
+point number.  Given two or more arguments, pause for the amount of time\n\
+specified by the sum of their values.\n\
 \n\
 "),
              program_name, program_name);


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to