>>>>> "YY" == Yuji Yamano <[EMAIL PROTECTED]> writes:

    YY> Hmm. Tramp unexpected this result.

    YY> Could you try the following patch?

Better.  I got logged in, used dired, but failed to load a file.
Here's the debug buffer:

$ ( cd / ) ; echo tramp_exit_status $?
# Opening connection for [EMAIL PROTECTED] using tu...
# Waiting for login prompt...
Trying 64.81.26.88...
Connected to 64.81.26.88.
Escape character is '^]'.


NeXT Mach (localhost) (ttyp1)


login: # Sending login name me
# Waiting for password prompt...
Trying 64.81.26.88...
Connected to 64.81.26.88.
Escape character is '^]'.


NeXT Mach (localhost) (ttyp1)


login: me
Password:# Sending password
# Waiting 30s for remote shell to come up...
Trying 64.81.26.88...
Connected to 64.81.26.88.
Escape character is '^]'.


NeXT Mach (localhost) (ttyp1)


login: me
Password:
Last login: Wed Apr  5 11:41:53 from adsl-78-220-114.
localhost> $ exec /bin/sh
# Waiting 30s for remote `/bin/sh' to come up...
exec /bin/sh
Warning: no termcap entry for linux.  Editing disabled.
exec /bin/sh
$ # Setting up remote shell environment
exec /bin/sh
Warning: no termcap entry for linux.  Editing disabled.
exec /bin/sh
$ stty -echo
# Determining coding system
echo foo ; echo bar 
$ foo
bar
$ # Waiting 30s for `set +o history'
$ # Waiting 30s for `set +o vi +o emacs'
$ # Waiting 30s for `unset MAIL MAILCHECK MAILPATH'
$ $ PS1='
/////
'; PS2=''; PS3=''
# Waiting for remote `/bin/sh' to come up...
# Waiting for remote `/bin/sh' to come up...done
$ echo ~root
/
# Remote `/bin/sh' groks tilde expansion, good
# Finding a suitable `ls' command
# Checking remote `/bin/ls' command for `-n' option
$ test -x /bin/ls ; echo tramp_exit_status $?
tramp_exit_status 0
# Testing remote command `/bin/ls' for -n...
$ /bin/ls -lnd / >/dev/null 2>&1 ; echo tramp_exit_status $?
tramp_exit_status 0
# Testing remote command `/bin/ls' for -n...okay
# Using remote command `/bin/ls' for getting directory listings
$ tramp_set_exit_status () {
return $1
}
$ /bin/ls -d /bin ; echo tramp_exit_status $?
/bin
tramp_exit_status 0
$ ( cd /bin ) ; echo tramp_exit_status $?
tramp_exit_status 0
$ /bin/ls -d /usr/bin ; echo tramp_exit_status $?
/usr/bin
tramp_exit_status 0
$ ( cd /usr/bin ) ; echo tramp_exit_status $?
tramp_exit_status 0
$ /bin/ls -d /usr/sbin ; echo tramp_exit_status $?
/usr/sbin not found
tramp_exit_status 0
$ ( cd /usr/sbin ) ; echo tramp_exit_status $?
/usr/sbin: bad directory
tramp_exit_status 1
$ /bin/ls -d /usr/local/bin ; echo tramp_exit_status $?
/usr/local/bin not found
tramp_exit_status 0
$ ( cd /usr/local/bin ) ; echo tramp_exit_status $?
/usr/local/bin: bad directory
tramp_exit_status 1
$ /bin/ls -d /usr/ccs/bin ; echo tramp_exit_status $?
/usr/ccs/bin not found
tramp_exit_status 0
$ ( cd /usr/ccs/bin ) ; echo tramp_exit_status $?
/usr/ccs/bin: bad directory
tramp_exit_status 1
$ /bin/ls -d /local/bin ; echo tramp_exit_status $?
/local/bin not found
tramp_exit_status 0
$ ( cd /local/bin ) ; echo tramp_exit_status $?
/local/bin: bad directory
tramp_exit_status 1
$ /bin/ls -d /local/freeware/bin ; echo tramp_exit_status $?
/local/freeware/bin not found
tramp_exit_status 0
$ ( cd /local/freeware/bin ) ; echo tramp_exit_status $?
/local/freeware/bin: bad directory
tramp_exit_status 1
$ /bin/ls -d /local/gnu/bin ; echo tramp_exit_status $?
/local/gnu/bin not found
tramp_exit_status 0
$ ( cd /local/gnu/bin ) ; echo tramp_exit_status $?
/local/gnu/bin: bad directory
tramp_exit_status 1
$ /bin/ls -d /usr/freeware/bin ; echo tramp_exit_status $?
/usr/freeware/bin not found
tramp_exit_status 0
$ ( cd /usr/freeware/bin ) ; echo tramp_exit_status $?
/usr/freeware/bin: bad directory
tramp_exit_status 1
$ PATH=/bin:/usr/bin; export PATH
$ LC_TIME=C; export LC_TIME; echo huhu
huhu
$ mesg n; echo huhu
huhu
$ biff n ; echo huhu
biff: not found
huhu
$ unalias ls; echo huhu
unalias: not found
huhu
$ test / -nt /
test: unknown operator -nt
$ tramp_test_nt () {
test -n "`find $1 -prune -newer $2 -print`"
}
# Looking for remote executable `/bin/perl5'
$ test -x /bin/perl5 ; echo tramp_exit_status $?
tramp_exit_status 1
# Looking for remote executable `/usr/bin/perl5'
$ test -x /usr/bin/perl5 ; echo tramp_exit_status $?
tramp_exit_status 1
# Looking for remote executable `/usr/sbin/perl5'
$ test -x /usr/sbin/perl5 ; echo tramp_exit_status $?
tramp_exit_status 1
# Looking for remote executable `/usr/local/bin/perl5'
$ test -x /usr/local/bin/perl5 ; echo tramp_exit_status $?
tramp_exit_status 1
# Looking for remote executable `/usr/ccs/bin/perl5'
$ test -x /usr/ccs/bin/perl5 ; echo tramp_exit_status $?
tramp_exit_status 1
# Looking for remote executable `/local/bin/perl5'
$ test -x /local/bin/perl5 ; echo tramp_exit_status $?
tramp_exit_status 1
# Looking for remote executable `/local/freeware/bin/perl5'
$ test -x /local/freeware/bin/perl5 ; echo tramp_exit_status $?
tramp_exit_status 1
# Looking for remote executable `/local/gnu/bin/perl5'
$ test -x /local/gnu/bin/perl5 ; echo tramp_exit_status $?
tramp_exit_status 1
# Looking for remote executable `/usr/freeware/bin/perl5'
$ test -x /usr/freeware/bin/perl5 ; echo tramp_exit_status $?
tramp_exit_status 1
# Couldn't find remote executable `perl5'
# Looking for remote executable `/bin/perl'
$ test -x /bin/perl ; echo tramp_exit_status $?
tramp_exit_status 1
# Looking for remote executable `/usr/bin/perl'
$ test -x /usr/bin/perl ; echo tramp_exit_status $?
tramp_exit_status 1
# Looking for remote executable `/usr/sbin/perl'
$ test -x /usr/sbin/perl ; echo tramp_exit_status $?
tramp_exit_status 1
# Looking for remote executable `/usr/local/bin/perl'
$ test -x /usr/local/bin/perl ; echo tramp_exit_status $?
tramp_exit_status 1
# Looking for remote executable `/usr/ccs/bin/perl'
$ test -x /usr/ccs/bin/perl ; echo tramp_exit_status $?
tramp_exit_status 1
# Looking for remote executable `/local/bin/perl'
$ test -x /local/bin/perl ; echo tramp_exit_status $?
tramp_exit_status 1
# Looking for remote executable `/local/freeware/bin/perl'
$ test -x /local/freeware/bin/perl ; echo tramp_exit_status $?
tramp_exit_status 1
# Looking for remote executable `/local/gnu/bin/perl'
$ test -x /local/gnu/bin/perl ; echo tramp_exit_status $?
tramp_exit_status 1
# Looking for remote executable `/usr/freeware/bin/perl'
$ test -x /usr/freeware/bin/perl ; echo tramp_exit_status $?
tramp_exit_status 1
# Couldn't find remote executable `perl'
# Looking for remote executable `/bin/ln'
$ test -x /bin/ln ; echo tramp_exit_status $?
tramp_exit_status 0
# Found remote executable `/bin/ln'
$ ( cd / ) ; echo tramp_exit_status $?
tramp_exit_status 0
$ ( cd / ) ; echo tramp_exit_status $?
tramp_exit_status 0
$ cd / ; echo tramp_exit_status $?
tramp_exit_status 0
$ /bin/ls -al
total 1690
drwxrwxrwt 13 root        1024 Apr  2 12:19 .
drwxrwxrwt 13 root        1024 Apr  2 12:19 ..
drwxr-xr-x  2 root        1024 Nov 12 06:26 .NeXT
-rw-r--r--  1 root         460 Oct 21 03:31 .cshrc
-rw-r--r--  1 root          89 Jul 31  1992 .hidden
-rw-r--r--  1 root         187 Mar 20  1989 .login
-rw-r--r--  1 root          52 Aug  1  1994 .logout
-rw-r--r--  1 root         150 Dec  8  1992 .path
-rw-r--r--  1 root         125 Dec  8  1992 .profile
dr-xr-xr-x  1 root         512 Apr  3 18:26 Net
drwxr-xr-x 12 root        1024 Nov 11 18:55 NextAdmin
drwxr-xr-x 11 root        1024 Nov 11 19:11 NextApps
drwxr-xr-x  3 root        1024 Oct 21 13:49 NextDeveloper
drwxr-xr-x 17 root        1024 Nov 11 19:32 NextLibrary
drwxr-xr-x  2 root        1024 Nov 11 18:44 bin
lrwxrwxrwx  1 root          11 Nov 11 22:03 dev -> private/dev
lrwxrwxrwx  1 root          11 Nov 11 22:03 etc -> private/etc
drwxr-xr-x  2 root        8192 Nov 11 21:49 lost+found
lrwxrwxrwx  1 root           9 Nov 11 22:03 mach -> $BOOTFILE
drwxrwxrwx  6 me          1024 Apr  4 18:35 me
-r--r--r--  3 root      836568 Oct 24 14:05 odmach
drwxr-xr-x 12 root        1024 Nov 11 22:05 private
-rw-r--r--  1 root           0 Apr  2 12:19 qfAA00103
-r--r--r--  3 root      836568 Oct 24 14:05 sdmach
lrwxrwxrwx  1 root          11 Nov 11 22:03 tmp -> private/tmp
drwxr-xr-x 14 root        1024 Nov 11 19:12 usr
$ /bin/ls -d / ; echo tramp_exit_status $?
/
tramp_exit_status 0
$ /bin/ls -ildn /
     2 drwxrwxrwt 13 root        1024 Apr  2 12:19 /
$ /bin/ls -d /me ; echo tramp_exit_status $?
/me
tramp_exit_status 0
$ ( cd /me ) ; echo tramp_exit_status $?
tramp_exit_status 0
$ ( cd /me ) ; echo tramp_exit_status $?
tramp_exit_status 0
$ ( cd /me ) ; echo tramp_exit_status $?
tramp_exit_status 0
$ cd /me/ ; echo tramp_exit_status $?
tramp_exit_status 0
$ /bin/ls -al
total 287
drwxrwxrwx  6 me          1024 Apr  4 18:35 .
drwxrwxrwt 13 root        1024 Apr  2 12:19 ..
drwxr-xr-x  3 me          1024 Apr  2 22:27 .NeXT
-r--r--r--  1 me           240 Mar  4  1992 .commanddict
-rw-r--r--  1 me           477 Oct 21 13:49 .cshrc
-r--r--r--  1 me           885 Jul 15  1991 .indent.pro
-rw-r--r--  1 me             0 Oct 20 20:48 .index.store
-rw-r--r--  1 me           184 Apr  5 11:41 .login
-rw-r--r--  1 me            55 Oct 21 13:49 .logout
-rw-r--r--  1 me            19 Oct 21 13:49 .mailrc
-r--r--r--  1 me            49 Jul 15  1991 .pipedict
-rw-r--r--  1 me           257 Oct 21 13:49 .plan
-rw-r--r--  1 me           239 Apr  2 20:22 .profile
drwxr-xr-x  2 me          1024 Oct 21 13:49 Apps
drwxr-xr-x  3 me          1024 Nov 11 18:56 Library
drwxr-xr-x  3 me          1024 Nov 11 18:54 Mailboxes
-rw-r--r--  1 me        269048 Apr  4 18:35 RebateForm-3.ps
$ /bin/ls -d /me/ ; echo tramp_exit_status $?
/me/
tramp_exit_status 0
$ /bin/ls -ildn /me/
 59878 drwxrwxrwx  6 me          1024 Apr  4 18:35 /me/
$ /bin/ls -d /me/.profile ; echo tramp_exit_status $?
/me/.profile
tramp_exit_status 0
$ ( cd /me/.profile ) ; echo tramp_exit_status $?
/me/.profile: bad directory
tramp_exit_status 1
$ /bin/ls -d /me ; echo tramp_exit_status $?
/me
tramp_exit_status 0
$ /bin/ls -ildn /me
 59878 drwxrwxrwx  6 me          1024 Apr  4 18:35 /me
$ /bin/ls -d /me/.profile ; echo tramp_exit_status $?
/me/.profile
tramp_exit_status 0
$ /bin/ls -ildn /me/.profile
 59884 -rw-r--r--  1 me           239 Apr  2 20:22 /me/.profile
$ /bin/ls -d /me/.profile ; echo tramp_exit_status $?
/me/.profile
tramp_exit_status 0
$ /bin/ls -ildn /me/.profile
 59884 -rw-r--r--  1 me           239 Apr  2 20:22 /me/.profile
$ /bin/ls -d /me ; echo tramp_exit_status $?
/me
tramp_exit_status 0
$ /bin/ls -ildn /me
 59878 drwxrwxrwx  6 me          1024 Apr  4 18:35 /me
$ /bin/ls -d /me/.profile ; echo tramp_exit_status $?
/me/.profile
tramp_exit_status 0
$ /bin/ls -ildn /me/.profile
 59884 -rw-r--r--  1 me           239 Apr  2 20:22 /me/.profile
$ /bin/ls -d /me/.profile ; echo tramp_exit_status $?
/me/.profile
tramp_exit_status 0
$ /bin/ls -ildn /me/.profile
 59884 -rw-r--r--  1 me           239 Apr  2 20:22 /me/.profile
$ /bin/ls -d /me/.profile ; echo tramp_exit_status $?
/me/.profile
tramp_exit_status 0
$ /bin/ls -d /me/.profile ; echo tramp_exit_status $?
/me/.profile
tramp_exit_status 0
# Encoding remote file /r@tu:[EMAIL PROTECTED]:/me/.profile...
$ uuencode xxx < /me/.profile ; echo tramp_exit_status $?
begin 644 xxx
M(W-T='D@97)A<V4@(EX_(B!I;G1R(")>0R(@:VEL;"`B7E4B("UD96-C=&QQ
M"B-E8VAO(")E<F%S92!>/R!I;G1R(%Y#(&MI;&P@7E4B"E!!5$@]+W5S<B]U
M8V(Z+V)I;CHO=7-R+V)I;CHO=7-R+W-Y8F%S92]B:6XZ)'M(3TU%?2]!<'!S
M.B],;V-A;$%P<',Z+TYE>'1!<'!S.B].97AT061M:6XZ+TYE>'1$979E;&]P
M97(O1&5M;W,*(U1%4DT]8'1S970@+2`M46`*97AP;W)T(%!!5$@@5$5232!(
.3TU%"G5M87-K(#`R,@H]
`
end
tramp_exit_status 0
# Decoding remote file /r@tu:[EMAIL PROTECTED]:/me/.profile...
# Decoding remote file /r@tu:[EMAIL PROTECTED]:/me/.profile with function 
uudecode-decode-region...
# Decoding remote file /r@tu:[EMAIL PROTECTED]:/me/.profile...done
$ /bin/ls -d /me/.profile ; echo tramp_exit_status $?
/me/.profile
tramp_exit_status 0
$ test -w /me/.profile ; echo tramp_exit_status $?
tramp_exit_status 0
$ /bin/ls -d /me/_ar\@tu_bme\@64.81.26.88_b_ame_a.profile ; echo tramp_exit_status $?
/me/_ar@[EMAIL PROTECTED] not found
tramp_exit_status 0
$ /bin/ls -d /me/.profile ; echo tramp_exit_status $?
/me/.profile
tramp_exit_status 0
$ tramp_test_nt /me/_ar\@tu_bme\@64.81.26.88_b_ame_a.profile  /me/.profile ; echo 
tramp_exit_status $?
find: bad status < /me/_ar@[EMAIL PROTECTED] >
tramp_exit_status 1
$ /bin/ls -d /me/RCS/.profile\,v ; echo tramp_exit_status $?
/me/RCS/.profile,v not found
tramp_exit_status 0
$ /bin/ls -d /me/.profile ; echo tramp_exit_status $?
/me/.profile
tramp_exit_status 0
$ /bin/ls -ildn /me/.profile
 59884 -rw-r--r--  1 me           239 Apr  2 20:22 /me/.profile
$ /bin/ls -d /me/RCS/.profile\,v ; echo tramp_exit_status $?
/me/RCS/.profile,v not found
tramp_exit_status 0
$ /bin/ls -d /me/RCS/.profile\,v ; echo tramp_exit_status $?
/me/RCS/.profile,v not found
tramp_exit_status 0
$ /bin/ls -d /me/RCS/.profile\,v ; echo tramp_exit_status $?
/me/RCS/.profile,v not found
tramp_exit_status 0
# Encoding remote file /r@tu:[EMAIL PROTECTED]:/me/RCS/.profile,v...
$ uuencode xxx < /me/RCS/.profile\,v ; echo tramp_exit_status $?
/me/RCS/.profile,v: cannot open
tramp_exit_status 1

Reply via email to