On 28 Mar 2001, Kai Großjohann wrote:

> This is way too short.  Are you sure you showed me all of it?  I'm
> looking for the output that happens when the connection is
> established.

Sorry there, basically overlooked 95% of the *debug buffer:

*tramp:
/bin/ksh: /u/ipsen/.cshrc: not a directory

*debug:
Last login: Wed Mar 28 18:45:55 2001 from tobias.rz-berlin.mpg.de
No mail.
himiko:ipsen(401)>$ exec /bin/sh
$ $ $ foo
bar
$ $ $ $ $ $ PS1='
/////
'; PS2=''; PS3=''
$ echo hello
hello
$ echo ~root
~root
$ while read d; do if test -x $d/ksh -a -f $d/ksh; then echo
$d/ksh; break; fi; done <<'EOF'
$ /usr/gnu/bin

$ /bin

$ /usr/bin

$ /usr/sbin

$ /usr/local/bin

$ /usr/ccs/bin

$ /local/bin

$ /local/freeware/bin

$ /local/gnu/bin

$ /usr/freeware/bin

$ /usr/pkg/bin

$ EOF

/bin/ksh

/////
$ PS1='$ ' ; exec /bin/ksh
$ $ echo hello
hello
$ ls -d / ; echo tramp_exit_status $?
/
tramp_exit_status 0
$ ls -d /\ this\ file\ does\ not\ exist\  ; echo tramp_exit_status $?
ls: ERROR: Cannot access / this file does not exist : No such file or
directory
tramp_exit_status 2
$ test -x /usr/gnu/bin/ls ; echo tramp_exit_status $?
tramp_exit_status 1
$ test -x /bin/ls ; echo tramp_exit_status $?
tramp_exit_status 0
$ /bin/ls -lnd / >/dev/null 2>&1 ; echo tramp_exit_status $?
tramp_exit_status 0
$ tramp_set_exit_status () {
return $1
}
$ ls -d /usr/gnu/bin ; echo tramp_exit_status $?
/usr/gnu/bin
tramp_exit_status 0
$ ( cd /usr/gnu/bin ; echo tramp_exit_status $? )
tramp_exit_status 0
$ ls -d /bin ; echo tramp_exit_status $?
/bin
tramp_exit_status 0
$ ( cd /bin ; echo tramp_exit_status $? )
tramp_exit_status 0
$ 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
$ ls -d /usr/sbin ; echo tramp_exit_status $?
/usr/sbin
tramp_exit_status 0
$ ( cd /usr/sbin ; echo tramp_exit_status $? )
tramp_exit_status 0
$ ls -d /usr/local/bin ; echo tramp_exit_status $?
/usr/local/bin
tramp_exit_status 0
$ ( cd /usr/local/bin ; echo tramp_exit_status $? )
tramp_exit_status 0
$ ls -d /usr/ccs/bin ; echo tramp_exit_status $?
/usr/ccs/bin
tramp_exit_status 0
$ ( cd /usr/ccs/bin ; echo tramp_exit_status $? )
tramp_exit_status 0
$ ls -d /local/bin ; echo tramp_exit_status $?
ls: ERROR: Cannot access /local/bin: No such file or directory
tramp_exit_status 2
$ ls -d /local/freeware/bin ; echo tramp_exit_status $?
ls: ERROR: Cannot access /local/freeware/bin: No such file or directory
tramp_exit_status 2
$ ls -d /local/gnu/bin ; echo tramp_exit_status $?
ls: ERROR: Cannot access /local/gnu/bin: No such file or directory
tramp_exit_status 2
$ ls -d /usr/freeware/bin ; echo tramp_exit_status $?
ls: ERROR: Cannot access /usr/freeware/bin: No such file or directory
tramp_exit_status 2
$ ls -d /usr/pkg/bin ; echo tramp_exit_status $?
ls: ERROR: Cannot access /usr/pkg/bin: No such file or directory
tramp_exit_status 2
$
PATH=/usr/gnu/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/ccs/bin; export
PATH
$ LC_TIME=C; export LC_TIME; echo huhu
huhu
$ mesg n; echo huhu
huhu
$ biff n ; echo huhu
/bin/ksh: biff:  not found
huhu
$ unalias ls; echo huhu
huhu
$ test / -nt /
$ tramp_test_nt () {
test -n "`find $1 -prune -newer $2 -print`"
}
$ while read d; do if test -x $d/perl5 -a -f $d/perl5; then echo
$d/perl5; break; fi; done <<'EOF'
$ /usr/gnu/bin

$ /bin

$ /usr/bin

$ /usr/sbin

$ /usr/local/bin

$ /usr/ccs/bin

$ /local/bin

$ /local/freeware/bin

$ /local/gnu/bin

$ /usr/freeware/bin

$ /usr/pkg/bin

$ EOF


/////
$ while read d; do if test -x $d/perl -a -f $d/perl; then echo
$d/perl; break; fi; done <<'EOF'
$ /usr/gnu/bin

$ /bin

$ /usr/bin

$ /usr/sbin

$ /usr/local/bin

$ /usr/ccs/bin

$ /local/bin

$ /local/freeware/bin

$ /local/gnu/bin

$ /usr/freeware/bin

$ /usr/pkg/bin

$ EOF

/usr/gnu/bin/perl

/////
$ tramp_file_attributes () {
/usr/gnu/bin/perl -e '$f = $ARGV[0];
@s = lstat($f);
if (($s[2] & 0170000) == 0120000) { $l = readlink($f); $l = "\"$l\""; }
elsif (($s[2] & 0170000) == 040000) { $l = "t"; }
else { $l = "nil" };
printf("(%s %u %u %u (%u %u) (%u %u) (%u %u) %u %u t (%u . %u) (%u
%u))\n",
$l, $s[3], $s[4], $s[5], $s[8] >> 16 & 0xffff, $s[8] & 0xffff,
$s[9] >> 16 & 0xffff, $s[9] & 0xffff, $s[10] >> 16 & 0xffff, $s[10] &
0xffff,
$s[7], $s[2], $s[1] >> 16 & 0xffff, $s[1] & 0xffff, $s[0] >> 16 & 0xffff,
$s[0] & 0xffff);' $1 2>/dev/null
}
$ while read d; do if test -x $d/ln -a -f $d/ln; then echo
$d/ln; break; fi; done <<'EOF'
$ /usr/gnu/bin

$ /bin

$ /usr/bin

$ /usr/sbin

$ /usr/local/bin

$ /usr/ccs/bin

$ /local/bin

$ /local/freeware/bin

$ /local/gnu/bin

$ /usr/freeware/bin

$ /usr/pkg/bin

$ EOF

/bin/ln

/////
$ cd ~; pwd
/u/ipsen
$ ( cd /u/ipsen/.cshrc ; echo tramp_exit_status $? )
/bin/ksh: /u/ipsen/.cshrc: not a directory

Reply via email to