[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: SIGSTOP and bash's time built-in
From: |
Chet Ramey |
Subject: |
Re: SIGSTOP and bash's time built-in |
Date: |
Fri, 30 Oct 2015 14:00:10 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 10/30/15 12:50 PM, Mike Frysinger wrote:
> On 26 Oct 2015 16:59, Stefan Tauner wrote:
>> I was creating some exercises for my students when I noticed very
>> strange behavior of the time built-in when sending SIGSTOP to a timed
>> command interactively (via ^Z):
>
> you could always install the dedicated time program and then do:
> $ /usr/bin/time sleep 5
>
> that'll handle ^Z and such
It's probably already installed, and \time will work to invoke it.
Chet
- --
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iEYEARECAAYFAlYzsCMACgkQu1hp8GTqdKukYwCfRgKGybozsGMUw82Vormjf582
K+gAnRraGragv+veg8MU2oLOM4NUVa/4
=b7J7
-----END PGP SIGNATURE-----