[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Quilt-dev] [patch 3/8] tac is not portable
From: |
Gary V. Vaughan |
Subject: |
Re: [Quilt-dev] [patch 3/8] tac is not portable |
Date: |
Thu, 15 Sep 2005 21:33:56 +0100 |
User-agent: |
Mozilla Thunderbird 1.0.6 (Macintosh/20050716) |
Jean Delvare wrote:
> Hi Gary,
Salut!
>>No, I mean that with that syntax you are running:
>>
>> (time head -n 500 <largefile;) | gtac
>>
>>not:
>>
>> time (head -n 500 < large file | gtac)
>
>
> I don't think so, not on my system at least.
>
> $ time true | sleep 1
>
> real 0m1.012s
> user 0m0.004s
> sys 0m0.004s
>
> $ (time true) | sleep 1
>
> real 0m0.007s
> user 0m0.004s
> sys 0m0.004s
>
> I guess the left-hand side of the pipe needs to wait for the right-hand
> side of the pipe to exit before it can exit itself, in order to get the
> return code or something alike.
Heh, learn something every day :-D *gob smacked*
> Oddly enough,
>
> $ time (true | sleep 1)
>
> returns only after the 1 second sleep, but doesn't print anything. I
> have no idea why.
Me either... that's how I ended up with the
$ time sh -c 'true | sleep 1'
thing originally though...
Cheers,
Gary.
--
Gary V. Vaughan ())_. address@hidden,gnu.org}
Research Scientist ( '/ http://tkd.kicks-ass.net
GNU Hacker / )= http://www.gnu.org/software/libtool
Technical Author `(_~)_ http://sources.redhat.com/autobook
signature.asc
Description: OpenPGP digital signature
- Re: [Quilt-dev] [patch 3/8] tac is not portable, (continued)
- Re: [Quilt-dev] [patch 3/8] tac is not portable, Jean Delvare, 2005/09/15
- Re: [Quilt-dev] [patch 3/8] tac is not portable, Andreas Gruenbacher, 2005/09/15
- Re: [Quilt-dev] [patch 3/8] tac is not portable, Josh Boyer, 2005/09/15
- Re: [Quilt-dev] [patch 3/8] tac is not portable, Jean Delvare, 2005/09/15
- Re: [Quilt-dev] [patch 3/8] tac is not portable, Josh Boyer, 2005/09/15
- Re: [Quilt-dev] [patch 3/8] tac is not portable, Peter Williams, 2005/09/15
- Re: [Quilt-dev] [patch 3/8] tac is not portable, Gary V. Vaughan, 2005/09/15
- Re: [Quilt-dev] [patch 3/8] tac is not portable, Jean Delvare, 2005/09/15
- Re: [Quilt-dev] [patch 3/8] tac is not portable, Gary V. Vaughan, 2005/09/15
- Re: [Quilt-dev] [patch 3/8] tac is not portable, Jean Delvare, 2005/09/15
- Re: [Quilt-dev] [patch 3/8] tac is not portable,
Gary V. Vaughan <=
- Re: [Quilt-dev] [patch 3/8] tac is not portable, Dave Dodge, 2005/09/16
- Re: [Quilt-dev] [patch 3/8] tac is not portable, Jean Delvare, 2005/09/16
[Quilt-dev] [patch 2/8], gary, 2005/09/13
- Re: [Quilt-dev] [patch 2/8], John Vandenberg, 2005/09/13
- Re: [Quilt-dev] workaround "received broken pipe signal" bash bug (was [patch 2/8]), Gary V. Vaughan, 2005/09/14
- Re: [Quilt-dev] workaround "received broken pipe signal" bash bug (was [patch 2/8]), John Vandenberg, 2005/09/14
- Re: [Quilt-dev] workaround "received broken pipe signal" bash bug (was [patch 2/8]), Andreas Gruenbacher, 2005/09/14
- Re: [Quilt-dev] workaround "received broken pipe signal" bash bug (was [patch 2/8]), Jean Delvare, 2005/09/14
- Re: [Quilt-dev] workaround "received broken pipe signal" bash bug (was [patch 2/8]), Gary V. Vaughan, 2005/09/14
- Re: [Quilt-dev] workaround "received broken pipe signal" bash bug (was [patch 2/8]), Jean Delvare, 2005/09/14