Enter your bug report in this message, including as much detail as you
possibly can about the problem, what you did to cause it and what the local
and remote machines are.

If you can give a simple set of instructions to make this bug happen reliably,
please include those.  Thank you for helping kill bugs in TRAMP.

When I hit + in a dired buffer to create a directory, tramp cds into
the new dir before doing an `ls -d -ald'.  The results of this `ls -d -ald'
are returned and displayed as the new directory created.

This has the unfortunate side effect of not properly displaying a new
directory name.  Instead, my dired buffer looks like this:

  /r@sm:[EMAIL PROTECTED]:/home/websites/slideshow.org:
  total 4
  drwxr-xr-x   4 mah   wheel  512 Aug 22 12:17 .
  drwxr-xr-x  12 root  wheel  512 Jul 24 21:48 ..
  drwxr-xr-x   7 mah   wheel  512 Jun 20 14:35 docs
  drwxr-xr-x   2 mah   wheel  512 Aug 22 12:10 etc
  drwxr-xr-x  2 mah  wheel  512 Aug 22 12:17 .


When it should look like:

  /r@sm:[EMAIL PROTECTED]:/home/websites/slideshow.org:
  total 5
  drwxr-xr-x   5 mah   wheel  512 Aug 22 12:17 .
  drwxr-xr-x  12 root  wheel  512 Jul 24 21:48 ..
  drwxr-xr-x   7 mah   wheel  512 Jun 20 14:35 docs
  drwxr-xr-x   2 mah   wheel  512 Aug 22 12:10 etc
  drwxr-xr-x   2 mah   wheel  512 Aug 22 12:17 tmp


debug buffer:
# Opening connection for [EMAIL PROTECTED] using sm...
# Waiting 60s for shell or passwd prompt from everybody.org
Last login: Tue Aug 22 12:08:36 2000 from 209.102.142.55
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.
FreeBSD 4.0-STABLE (EVERYBODY) #3: Mon Jun  5 12:05:24 CDT 2000

Welcome to EveryBody.Org.


/usr/X11R6/bin/xauth:  creating new authority file /tmp/ssh-rGv44166/cookies
mah@everybody mah$ # Initializing remote shell
$ exec /bin/sh
# Waiting 30s for remote `/bin/sh' to come up...
$ # Setting up remote shell environment
$ # Determining coding system
foo
bar
$ # Waiting 30s for `set +o history'
set: Illegal option -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
/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
}
$ test -e /bin ; echo tramp_exit_status $?
tramp_exit_status 0
$ ( cd /bin ; echo tramp_exit_status $? )
tramp_exit_status 0
$ test -e /usr/bin ; echo tramp_exit_status $?
tramp_exit_status 0
$ ( cd /usr/bin ; echo tramp_exit_status $? )
tramp_exit_status 0
$ test -e /usr/sbin ; echo tramp_exit_status $?
tramp_exit_status 0
$ ( cd /usr/sbin ; echo tramp_exit_status $? )
tramp_exit_status 0
$ test -e /usr/local/bin ; echo tramp_exit_status $?
tramp_exit_status 0
$ ( cd /usr/local/bin ; echo tramp_exit_status $? )
tramp_exit_status 0
$ test -e /usr/ccs/bin ; echo tramp_exit_status $?
tramp_exit_status 1
$ test -e /local/bin ; echo tramp_exit_status $?
tramp_exit_status 1
$ test -e /local/freeware/bin ; echo tramp_exit_status $?
tramp_exit_status 1
$ test -e /local/gnu/bin ; echo tramp_exit_status $?
tramp_exit_status 1
$ test -e /usr/freeware/bin ; echo tramp_exit_status $?
tramp_exit_status 1
$ PATH=/bin:/usr/bin:/usr/sbin:/usr/local/bin; export PATH
$ LC_TIME=C; export LC_TIME; echo huhu
huhu
$ mesg n; echo huhu
huhu
$ biff n ; echo huhu
huhu
$ unalias ls; echo huhu
huhu
$ test / -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 0
# Found remote executable `/usr/bin/perl5'
# Sending the Perl `file-attributes' implementation.
$ tramp_file_attributes () {
/usr/bin/perl5 -e '$f = $ARGV[0];
@s = lstat($f);
if (($s[2] & 0120000) == 0120000) { $l = readlink($f); $l = "\"$l\""; }
elsif (($s[2] & 040000) == 040000) { $l = "t"; }
else { $l = "nil" };
printf("(%s %u %u %u (%u %u) (%u %u) (%u %u) %u %u t %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], $s[0] >> 16 & 0xffff, $s[0] & 0xffff);' $1 2>/dev/null
}
# Looking for remote executable `/bin/ln'
$ test -x /bin/ln ; echo tramp_exit_status $?
tramp_exit_status 0
# Found remote executable `/bin/ln'
$  mkdir /home/websites/slideshow.org/tmp ; echo tramp_exit_status $?
tramp_exit_status 0
$ ( cd /home/websites/slideshow.org/tmp ; echo tramp_exit_status $? )
tramp_exit_status 0
$ cd /home/websites/slideshow.org/tmp ; echo tramp_exit_status $?
tramp_exit_status 0
$ /bin/ls -d -ald
drwxr-xr-x  2 mah  wheel  512 Aug 22 12:13 .
$ ( cd /home/websites/slideshow.org ; echo tramp_exit_status $? )
tramp_exit_status 0
$ cd /home/websites/slideshow.org/ ; echo tramp_exit_status $?
tramp_exit_status 0
$ /bin/ls -al
total 5
drwxr-xr-x   5 mah   wheel  512 Aug 22 12:13 .
drwxr-xr-x  12 root  wheel  512 Jul 24 21:48 ..
drwxr-xr-x   7 mah   wheel  512 Jun 20 14:35 docs
drwxr-xr-x   2 mah   wheel  512 Aug 22 12:10 etc
drwxr-xr-x   2 mah   wheel  512 Aug 22 12:13 tmp
$ test -e /home/websites/slideshow.org/ ; echo tramp_exit_status $?
tramp_exit_status 0
$ tramp_file_attributes /home/websites/slideshow.org/
(t 5 1000 0 (14754 46334) (14754 46295) (14754 46295) 512 16877 t 2063402 (2 3334))
$ test -e /home/websites/slideshow.org/tmp ; echo tramp_exit_status $?
tramp_exit_status 0
$ tramp_file_attributes /home/websites/slideshow.org/tmp
(t 2 1000 0 (14754 46295) (14754 46295) (14754 46295) 512 16877 t 904713 (2 3334))
$ rmdir /home/websites/slideshow.org/tmp ; echo ok
ok
$ ( cd /home/websites/slideshow.org ; echo tramp_exit_status $? )
tramp_exit_status 0
$ cd /home/websites/slideshow.org/ ; echo tramp_exit_status $?
tramp_exit_status 0
$ /bin/ls -al
total 4
drwxr-xr-x   4 mah   wheel  512 Aug 22 12:17 .
drwxr-xr-x  12 root  wheel  512 Jul 24 21:48 ..
drwxr-xr-x   7 mah   wheel  512 Jun 20 14:35 docs
drwxr-xr-x   2 mah   wheel  512 Aug 22 12:10 etc
$ test -e /home/websites/slideshow.org/ ; echo tramp_exit_status $?
tramp_exit_status 0
$ tramp_file_attributes /home/websites/slideshow.org/
(t 4 1000 0 (14754 46486) (14754 46485) (14754 46485) 512 16877 t 2063402 (2 3334))
$  mkdir /home/websites/slideshow.org/tmp ; echo tramp_exit_status $?
tramp_exit_status 0
$ ( cd /home/websites/slideshow.org/tmp ; echo tramp_exit_status $? )
tramp_exit_status 0
$ cd /home/websites/slideshow.org/tmp ; echo tramp_exit_status $?
tramp_exit_status 0
$ /bin/ls -d -ald
drwxr-xr-x  2 mah  wheel  512 Aug 22 12:17 .


Emacs  : GNU Emacs 20.7.1 (i386-redhat-linux-gnu, X toolkit)
 of Tue Jun 13 2000 on porky.devel.redhat.com
Package: tramp ($Id: tramp.el,v 1.406 2000/08/19 15:23:42 grossjoh Exp $)

current state:
==============
(setq
 tramp-ls-command nil
 tramp-current-method nil
 tramp-current-user nil
 tramp-current-host nil
 tramp-auto-save-directory nil
 tramp-default-method "sm"
 tramp-rsh-end-of-line "\n"
 tramp-remote-path '("/bin" "/usr/bin" "/usr/sbin" "/usr/local/bin" "/usr/ccs/bin" 
"/local/bin"
                     "/local/freeware/bin" "/local/gnu/bin" "/usr/freeware/bin")
 tramp-login-prompt-regexp ".*ogin: *$"
 tramp-password-prompt-regexp "^.*\\([pP]assword\\|passphrase.*\\):? *$"
 tramp-wrong-passwd-regexp "^.*\\(Permission denied.\\|Login [Ii]ncorrect\\|Received 
signal [0-9]+\\|Connection \\(refused\\|closed\\)\\|Sorry, try again.\\|Name or 
service not known\\).*$"
 tramp-temp-name-prefix "tramp."
 tramp-file-name-structure 
'("\\`/r\\(@\\([a-z0-9]+\\)\\)?:\\(\\([a-z0-9_#]+\\)@\\)?\\([a-z0-9.-]+\\):\\(.*\\)\\'"
 2 4 5 6)
 tramp-file-name-regexp "\\`/r[@:]"
 tramp-make-tramp-file-format "/r@%m:%u@%h:%p"
 tramp-end-of-output "/////"
 shell-prompt-pattern "^[^#$%>\n]*[#$%>] +"
 )

Reply via email to