On Fri, 17 Nov 2000, Francesco Potorti` wrote:
> > Tramp is trying to find a method to figure out whether a
> > file exists. But that the `test' built-in to the Solaris
> > /bin/sh is _so_ bad that it even fails to execute the second
> > command on the last line, that I didn't expect. Ick.
> >
> > No no no. Look at this:
> >
> > arianna% test -e /; echo $?
> > test: argument expected
> > -1
>
> Excuse me if I'm wrong, but the prompt looks suspiciously like a
> csh prompt. Please make sure to run /bin/sh and test there.
>
> You are right, but nothing changes:
>
> $ test -e /; echo $? <--- here is the problem
> test: argument expected
What do you mean by `nothing changes'?
I said that /bin/sh isn't executing the second command on this line
(the echo command), and that's correct.
tcsh was executing the second command, it was printing "-1".
The thing to try is to send `test -e /' as one command, and then `echo
$?' as another.
kai
--
The arms should be held in a natural and unaffected way and never
be conspicuous. -- Revised Technique of Latin American Dancing