View Single Post

   
  #4 (permalink)  
Old 01-05-2008, 05:27 AM
Gary
 
Posts: n/a
Default Re: Strange, inconsistent NFS problem


Mark Taylor wrote:
> not sure I am understanding your testcase here....
>
> [[ -d /tmp ]] || echo This will fail
> --> nothing
>
> [[ -d /tmp ]] && echo This will succeed
> This will succeed
>
> Is that your testcase ? have you tried running it on a normal

directory

Sorry I wasn't clearer.

The test case is designed to show the inconsistency. Both messages
will print, even though the sense of the conjunction is swapped. In
other words, the first -d fails, causing the message to print. The
second -d succeeds, causing its message to print as well.

If you do it on an ordinary directory, only one message will print.
Gary

Reply With Quote