> 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:
arianna% echo $SHELL
/usr/local/bin/tcsh
arianna% exec /bin/sh
$ echo $SHELL <--- mmmh. This means nothing
/usr/local/bin/tcsh
$ test -e /; echo $? <--- here is the problem
test: argument expected
$ test -e; echo $?
0
$ test /; echo $?
0
$ /bin/sh --version <--- not bash
$ what /bin/sh
what: not found <--- no SCCS installed
$ a=b
$ echo $a
b
$ export a <--- okay, this is not a csh
$