[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tramp (2.1.8-pre); Couldn't find exist status of `test -e dir`
From: |
Zhihong Zhang |
Subject: |
Re: tramp (2.1.8-pre); Couldn't find exist status of `test -e dir` |
Date: |
Wed, 17 Jan 2007 09:29:52 -0500 |
User-agent: |
Microsoft-Entourage/11.2.5.060620 |
Here is the output,
$ /bin/sh
test -e /
echo tramp_exit_status $?
test -e /\ this\ file\ does\ not\ exist\
echo tramp_exit_status $?
test -e /export/home/zhang/cvswork/
echo tramp_exit_status $?
$ test: argument expected
$ tramp_exit_status 1
$ test: argument expected
$ tramp_exit_status 1
$ test: argument expected
$ tramp_exit_status 1
How do you explain that it works for a while then starts giving this error?
Thanks for looking into this.
Zhihong
On 1/17/07 6:35 AM, "Michael Albinus" <address@hidden> wrote:
> Zhihong Zhang <address@hidden> writes:
>
>> Couldn't find exist status of `test -e dir`
>>
>> after entering password.
>>
>> This only happens to one host, which is a solaris,
>>
>> SunOS io 5.8 Generic_108528-15 sun4u sparc SUNW,Sun-Blade-100
>>
>> It works fine when file is on a Linux host.
>
> Tramp needs to detect which "test" command it can apply on a remote
> host. It prefers "test -e", but this does not work with all shells.
> In your case, it has decided to use it.
>
> Could you, please, apply the following commands on your solaris host,
> and show the results?
>
> /bin/sh
> test -e /
> echo tramp_exit_status $?
> test -e /\ this\ file\ does\ not\ exist\
> echo tramp_exit_status $?
> test -e /export/home/zhang/cvswork/
> echo tramp_exit_status $?
>
>> Thanks!
>>
>> Zhihong
>
> Best regards, Michael.