$ unset HISTORY % $ unset correct % $ unset autocorrect % $ exec env 'ENV=' 'PROMPT_COMMAND=' 'PS1=$ ' /bin/sh $ $ $ stty -inlcr -echo kill '^U' $ $ echo foo foo $ $ TERM=dumb; export TERM $ $ (uname -sr) 2>/dev/null SunOS 5.10 $ $ echo foo ; echo bar foo bar $ $ HISTFILE=$HOME/.tramp_history; HISTSIZE=1; export HISTFILE; export HISTSIZE $ $ set +o vi +o emacs $ $ unset MAIL MAILCHECK MAILPATH 1>/dev/null 2>/dev/null $ $ unset CDPATH $ $ PROMPT_COMMAND='' $ $ PS2='' $ $ PS3='' $ $ PS1=' ///865a72de6d796159175cf0328a0f925c ' $ echo ~root ~root $ while read d; do if test -x $d/bash -a -f $d/bash; then echo tramp_executable $d/bash; break; fi; done <<'EOF' $ /opt/app/bin $ /usr/xpg4/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 $ /usr/contrib/bin $ EOF tramp_executable /bin/bash # Starting remote shell `/bin/bash -norc -noprofile' for tilde expansion... $ PROMPT_COMMAND='' PS1='$ ' exec /bin/bash -norc -noprofile $ $ test -e / 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ test -e /\ this\ file\ does\ not\ exist\ 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -x /opt/app/bin/ls 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -x /usr/xpg4/bin/ls 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ /usr/xpg4/bin/ls -lnd / >/dev/null 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 # Using remote command `/usr/xpg4/bin/ls' for getting directory listings $ tramp_set_exit_status () { return $1 } $ test -e /opt/app/bin 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ ( test -d /opt/app/bin 2>/dev/null; echo tramp_exit_status $? ) tramp_exit_status 0 $ test -e /usr/xpg4/bin 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ ( test -d /usr/xpg4/bin 2>/dev/null; echo tramp_exit_status $? ) tramp_exit_status 0 $ test -e /bin 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ ( test -d /bin 2>/dev/null; echo tramp_exit_status $? ) tramp_exit_status 0 $ test -e /usr/bin 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ ( test -d /usr/bin 2>/dev/null; echo tramp_exit_status $? ) tramp_exit_status 0 $ test -e /usr/sbin 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ ( test -d /usr/sbin 2>/dev/null; echo tramp_exit_status $? ) tramp_exit_status 0 $ test -e /usr/local/bin 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ ( test -d /usr/local/bin 2>/dev/null; echo tramp_exit_status $? ) tramp_exit_status 0 $ test -e /usr/ccs/bin 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ ( test -d /usr/ccs/bin 2>/dev/null; echo tramp_exit_status $? ) tramp_exit_status 0 $ test -e /local/bin 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /local/freeware/bin 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /local/gnu/bin 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /usr/freeware/bin 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /usr/pkg/bin 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /usr/contrib/bin 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ PATH=/opt/app/bin:/usr/xpg4/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 bash: biff: command not found huhu $ unalias ls; echo huhu bash: unalias: ls: not found huhu $ ( test / -nt / ) $ tramp_test_nt () { test -n "`find $1 -prune -newer $2 -print`" } $ tramp_uudecode () { (echo begin 600 /tmp/tramp.$$; tail +2) | uudecode cat /tmp/tramp.$$ rm -f /tmp/tramp.$$ } $ while read d; do if test -x $d/perl5 -a -f $d/perl5; then echo tramp_executable $d/perl5; break; fi; done <<'EOF' $ /opt/app/bin $ /usr/xpg4/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 $ /usr/contrib/bin $ EOF $ while read d; do if test -x $d/perl -a -f $d/perl; then echo tramp_executable $d/perl; break; fi; done <<'EOF' $ /opt/app/bin $ /usr/xpg4/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 $ /usr/contrib/bin $ EOF tramp_executable /bin/perl $ while read d; do if test -x $d/ln -a -f $d/ln; then echo tramp_executable $d/ln; break; fi; done <<'EOF' $ /opt/app/bin $ /usr/xpg4/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 $ /usr/contrib/bin $ EOF tramp_executable /usr/xpg4/bin/ln $ id -u; id -g 859 30007 $ ( test -d /tmp/trash 2>/dev/null; echo tramp_exit_status $? ) tramp_exit_status 1 $ test -e /tmp 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 # Sending the Perl script `tramp_file_attributes'... $ tramp_file_attributes () { /bin/perl -e '@stat = lstat($ARGV[0]); if (($stat[2] & 0170000) == 0120000) { $type = readlink($ARGV[0]); $type = "\"$type\""; } elsif (($stat[2] & 0170000) == 040000) { $type = "t"; } else { $type = "nil" }; $uid = ($ARGV[1] eq "integer") ? $stat[4] : "\"" . getpwuid($stat[4]) . "\""; $gid = ($ARGV[1] eq "integer") ? $stat[5] : "\"" . getgrgid($stat[5]) . "\""; printf( "(%s %u %s %s (%u %u) (%u %u) (%u %u) %u %u t (%u . %u) -1)\n", $type, $stat[3], $uid, $gid, $stat[8] >> 16 & 0xffff, $stat[8] & 0xffff, $stat[9] >> 16 & 0xffff, $stat[9] & 0xffff, $stat[10] >> 16 & 0xffff, $stat[10] & 0xffff, $stat[7], $stat[2], $stat[1] >> 16 & 0xffff, $stat[1] & 0xffff );' "$1" "$2" "$3" 2>/dev/null } tramp_exit_status 0 # Sending the Perl script `tramp_file_attributes'...done. $ tramp_file_attributes /tmp integer (t 15 0 3 (18856 56866) (18857 22379) (18857 22379) 2105 17407 t (61493 . 57428) -1) $ test -e /tmp/trash 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/trash 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ tramp_file_attributes /tmp integer (t 15 0 3 (18856 56866) (18857 22379) (18857 22379) 2105 17407 t (61493 . 57428) -1) $ test -e /tmp/trash 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/trash 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/trash 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/trash 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/trash 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/RCS/trash\,v 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/trash\,v 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/RCS/trash 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -r /tmp/CVS/Entries 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -r /tmp/.svn/entries 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/SCCS/s.trash 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/s.trash 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/trash 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/trash/.bzr/checkout/format 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/ 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ tramp_file_attributes /tmp/ integer (t 15 0 3 (18856 56866) (18857 22379) (18857 22379) 2105 17407 t (61493 . 57428) -1) $ test -e /tmp/.bzr/checkout/format 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e / 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ tramp_file_attributes / integer (t 38 0 0 (18856 65385) (18836 29104) (18836 29104) 1024 16877 t (0 . 2) -1) $ test -e /.bzr/checkout/format 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/trash 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/trash/.git 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/ 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ tramp_file_attributes /tmp/ integer (t 15 0 3 (18856 56866) (18857 22379) (18857 22379) 2105 17407 t (61493 . 57428) -1) $ test -e /tmp/.git 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e / 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ tramp_file_attributes / integer (t 38 0 0 (18856 65385) (18836 29104) (18836 29104) 1024 16877 t (0 . 2) -1) $ test -e /.git 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/trash 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/trash/.hg 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/ 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ tramp_file_attributes /tmp/ integer (t 15 0 3 (18856 56866) (18857 22379) (18857 22379) 2105 17407 t (61493 . 57428) -1) $ test -e /tmp/.hg 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e / 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ tramp_file_attributes / integer (t 38 0 0 (18856 65385) (18836 29104) (18836 29104) 1024 16877 t (0 . 2) -1) $ test -e /.hg 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/trash 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/trash/_MTN/format 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/ 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ tramp_file_attributes /tmp/ integer (t 15 0 3 (18856 56866) (18857 22379) (18857 22379) 2105 17407 t (61493 . 57428) -1) $ test -e /tmp/_MTN/format 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e / 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ tramp_file_attributes / integer (t 38 0 0 (18856 65385) (18836 29104) (18836 29104) 1024 16877 t (0 . 2) -1) $ test -e /_MTN/format 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/trash 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/trash/\{arch\}/\=tagging-method 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/ 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ tramp_file_attributes /tmp/ integer (t 15 0 3 (18856 56866) (18857 22379) (18857 22379) 2105 17407 t (61493 . 57428) -1) $ test -e /tmp/\{arch\}/\=tagging-method 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e / 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ tramp_file_attributes / integer (t 38 0 0 (18856 65385) (18836 29104) (18836 29104) 1024 16877 t (0 . 2) -1) $ test -e /\{arch\}/\=tagging-method 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/trash 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/trash/MCVS/CVS 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/ 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ tramp_file_attributes /tmp/ integer (t 15 0 3 (18856 56866) (18857 22379) (18857 22379) 2105 17407 t (61493 . 57428) -1) $ test -e /tmp/MCVS/CVS 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e / 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ tramp_file_attributes / integer (t 38 0 0 (18856 65385) (18836 29104) (18836 29104) 1024 16877 t (0 . 2) -1) $ test -e /MCVS/CVS 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/trash 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -d /tmp/ 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ test -w /tmp/ 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ test -e /tmp/trash 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/trash 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/trash 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/RCS/trash\,v 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/trash\,v 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/RCS/trash 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -r /tmp/CVS/Entries 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -r /tmp/.svn/entries 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/SCCS/s.trash 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/s.trash 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/trash 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/trash/.bzr/checkout/format 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/ 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ tramp_file_attributes /tmp/ integer (t 15 0 3 (18856 56866) (18857 22379) (18857 22379) 2105 17407 t (61493 . 57428) -1) $ test -e /tmp/.bzr/checkout/format 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e / 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ tramp_file_attributes / integer (t 38 0 0 (18856 65385) (18836 29104) (18836 29104) 1024 16877 t (0 . 2) -1) $ test -e /.bzr/checkout/format 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/trash 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/trash/.git 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/ 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ tramp_file_attributes /tmp/ integer (t 15 0 3 (18856 56866) (18857 22379) (18857 22379) 2105 17407 t (61493 . 57428) -1) $ test -e /tmp/.git 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e / 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ tramp_file_attributes / integer (t 38 0 0 (18856 65385) (18836 29104) (18836 29104) 1024 16877 t (0 . 2) -1) $ test -e /.git 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/trash 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/trash/.hg 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/ 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ tramp_file_attributes /tmp/ integer (t 15 0 3 (18856 56866) (18857 22379) (18857 22379) 2105 17407 t (61493 . 57428) -1) $ test -e /tmp/.hg 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e / 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ tramp_file_attributes / integer (t 38 0 0 (18856 65385) (18836 29104) (18836 29104) 1024 16877 t (0 . 2) -1) $ test -e /.hg 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/trash 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/trash/_MTN/format 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/ 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ tramp_file_attributes /tmp/ integer (t 15 0 3 (18856 56866) (18857 22379) (18857 22379) 2105 17407 t (61493 . 57428) -1) $ test -e /tmp/_MTN/format 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e / 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ tramp_file_attributes / integer (t 38 0 0 (18856 65385) (18836 29104) (18836 29104) 1024 16877 t (0 . 2) -1) $ test -e /_MTN/format 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/trash 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/trash/\{arch\}/\=tagging-method 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/ 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ tramp_file_attributes /tmp/ integer (t 15 0 3 (18856 56866) (18857 22379) (18857 22379) 2105 17407 t (61493 . 57428) -1) $ test -e /tmp/\{arch\}/\=tagging-method 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e / 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ tramp_file_attributes / integer (t 38 0 0 (18856 65385) (18836 29104) (18836 29104) 1024 16877 t (0 . 2) -1) $ test -e /\{arch\}/\=tagging-method 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/trash 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/trash/MCVS/CVS 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/ 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ tramp_file_attributes /tmp/ integer (t 15 0 3 (18856 56866) (18857 22379) (18857 22379) 2105 17407 t (61493 . 57428) -1) $ test -e /tmp/MCVS/CVS 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e / 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ tramp_file_attributes / integer (t 38 0 0 (18856 65385) (18836 29104) (18836 29104) 1024 16877 t (0 . 2) -1) $ test -e /MCVS/CVS 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/trash 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/trash 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/trash 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/trash 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -d /tmp/ 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ test -w /tmp/ 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ test -e /tmp/trash 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /tmp/trash 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ ( test -d /tmp/trash 2>/dev/null; echo tramp_exit_status $? ) tramp_exit_status 1 $ test -d /tmp/ 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ test -r /tmp/ 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ test -x /tmp/ 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0