[4489] in testers

home help back first fref pref prev next nref lref last post

Re: What should athdir do w/ no support?

daemon@ATHENA.MIT.EDU (Jacob Morzinski)
Thu Jun 22 03:07:31 2000

To: tb@MIT.EDU (Thomas Bushnell, BSG)
Cc: testers@MIT.EDU
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
From: Jacob Morzinski <jmorzins@MIT.EDU>
Date: 22 Jun 2000 03:07:23 -0400
In-Reply-To: tb@MIT.EDU's message of 21 Jun 2000 23:47:43 -0400
Message-ID: <w6msnu619ec.fsf@well.mit.edu>

<tb@MIT.EDU> (Thomas Bushnell, BSG) writes:
> Returning an error is probably a decent idea.  Note that most uses of
> athdir are probably inside ``, so it's not necessarily the case that
> we have a good way of catching errors conveniently.

People may not be testing for errors, but it is possible to do so.
For example, these lines do what it looks like they do:

cmd="false"    ; if var=`$cmd` ; then echo $var ; else echo error ; fi
cmd="echo CMD" ; if var=`$cmd` ; then echo $var ; else echo error ; fi
var=`false` || exit $?

home help back first fref pref prev next nref lref last post