[Top][All Lists]

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

Re: [Bug-dejagnu] Remote file exists bug

From: Ben Elliston
Subject: Re: [Bug-dejagnu] Remote file exists bug
Date: Tue, 12 Jan 2016 10:13:21 +1100
User-agent: Mutt/1.5.23 (2014-03-12)

Hi Simon

> However, the [ operator does not actually output anything, it
> returns 1 or 0 as its exit code.  So the outcome is always simply
> "exit", which is equivalent to "exit 0", which is always true.  As
> an alternative, I suggest calling the "test" utility (which is
> present on all unixes I know about) and use its exit code directly:

>     set status [remote_exec $dest "test -f $file"]

Great catch!  Your proposed fix looks fine, thanks.


Attachment: signature.asc
Description: Digital signature

reply via email to

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