On Wed, Aug 15, 2001 at 12:18:20PM +0200, Akim Demaille wrote:
> 
> | Yes - I don't have "times" anywhere.. It does say ! /bin/sh at the top
> | of testsuite afterall, not some other shell. eg. of output from testsuite:
> | 
> |   1: tools.at:47       times: not found
> | FAILED near `tools.at:83'
> 
> Thanks!
> 
> What is your platform?  How does
> 
> :; times >at-times 2>/dev/null; echo $?
> 
> behave?
> 
> how does Tim's proposal work?
> 
> at_times=:
> times >dev/null 2>&1 && at_times=times
> $times >at-times
> echo $?

quartz% cat foo.sh
#! /bin/sh

:; times >at-times 2>/dev/null; echo $?


at_times=:
times >dev/null 2>&1 && at_times=times
$times >at-times
echo $?  

quartz% sh foo.sh
times: not found
127
times: not found
0
quartz% uname -rms
NetBSD 1.5X i386

Cheers,

Patrick

Reply via email to