autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "times" ?!


From: Patrick Welche
Subject: Re: "times" ?!
Date: Wed, 15 Aug 2001 12:05:04 +0100
User-agent: Mutt/1.3.19i

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

[Prev in Thread] Current Thread [Next in Thread]