Date: Fri, 24 Jul 1998 20:08:22 +1000 From: Bruce Evans <bde@zeta.org.au> To: freebsd-bugs@FreeBSD.ORG, kargl@apl.washington.edu, rotel@indigo.ie Subject: Re: bin/7368: Added options to /usr/bin/time Message-ID: <199807241008.UAA24202@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>> How does one redirect via a shell the output of /usr/bin/time >> without redirecting the output from the command that is being >> timed. Using a real shell: time 3>&2 2>wherever sh -c "ls 2>&3 3>&-" ^^^^dup stderr on fd 3 ^^^^,^^^^ put back stderr, close fd 3 >> The answer is you can't, and is the motivation for the new >> options. Nope, see above. >time sh -c "ls >x 2>&1" >y 2>&1 Nope, this redirects the output of the command that is being timed. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807241008.UAA24202>