Using rcp v1.198.

I have redefined `make-backup-file' from the default of Emacs 20.4 so
that, when working with a remote file with rcp, the backup file is on
my local machine.  This presently causes an error from rcp in the case
that you open a remote file F, alter it, and save it.  The error is
that renaming across machines is not yet supported.  The error is
properly descriptive, I think, when using the standard setting of
`backup-by-copying', which is nil.  

With earlier versions of rcp (I can't tell you which), this was not a
problem.

When I change `backup-by-copying' to t, however, I get the following
error when trying to save the file.  Even if I turn off backups
entirely by setting `make-backup-files' to nil, I get the same error.

    rcp-handle-write-region: rsync failed for file 
/r@rsynclocal:[EMAIL PROTECTED]:/home2/s/swift/public_html/index.html

The "rsynclocal" method is the same as the "rsync" method except I add
an option for a path that the remote sshd doesn't' like to give me:

 ("rsynclocal"
  (rcp-connection-function rcp-open-connection-rsh)
  (rcp-rsh-program "ssh")
  (rcp-rcp-program "rsync")
  (rcp-rsh-args
   ("-e" "none"))
  (rcp-rcp-args
   ("--rsh=ssh" "--compress" "--timeout=30" "--rsync-path=~/bin/rsync"))
  (rcp-rcp-keep-date-arg "-t")
  (rcp-encoding-command nil)
  (rcp-decoding-command nil)
  (rcp-encoding-function nil)
  (rcp-decoding-function nil)
  (rcp-telnet-program nil)
  (rcp-rlogin-program nil)))


<digression>
  Since I have seen on this list several times that a release of rcp
  breaks something fundamental, perhaps it is time to consider forking
  rcp development into a stable and unstable version, the stable having
  been proven adequate in a certain core functionality.  The development
  wrt more methods, more platforms, version control, filename completion
  etc. need not disturb those who want rcp for the functionality it
  already has.
</digression>

The contents of the debug buffer for the case when `backup-by-copying'
is t and `make-backup-files' is t follows, having started Emacs
afresh, set `rcp-debug-buffer' to t, loaded the remote file, made a
trivial alteration, and pressed C-x C-s:

$ stty -onlcr -echo
\w> > > 
/////
$ echo ~root
~root
$ test -x /sbin/ksh ; echo $?
1
$ test -x /bin/ksh ; echo $?
0
$ exec /bin/ksh
$ echo hello
> > 
/////
hello
$ test -x /sbin/ls ; echo $?
1
$ test -x /bin/ls ; echo $?
0
$ /bin/ls -lnd / >/dev/null 2>&1 ; echo $?
0
$ rcp_set_exit_status () {
return $1
}
$ /bin/ls -d /sbin >/dev/null 2>&1 ; echo $?
0
$ /bin/ls -d /sbin >/dev/null 2>&1 ; echo $?
0
$ /bin/ls -iLldn /sbin
   27 drwxrwxr-x   2 0        3            512 Aug 19 05:53 /sbin
$ /bin/ls -d /bin >/dev/null 2>&1 ; echo $?
0
$ /bin/ls -d /bin >/dev/null 2>&1 ; echo $?
0
$ /bin/ls -iLldn /bin
22784 drwxrwxr-x   2 0        2           7680 Aug 19 09:50 /bin
$ /bin/ls -d /usr/ucb >/dev/null 2>&1 ; echo $?
0
$ /bin/ls -d /usr/ucb >/dev/null 2>&1 ; echo $?
0
$ /bin/ls -iLldn /usr/ucb
23208 drwxrwxr-x   2 0        2           2048 Aug 19 06:28 /usr/ucb
$ /bin/ls -d /usr/bin >/dev/null 2>&1 ; echo $?
0
$ /bin/ls -d /usr/bin >/dev/null 2>&1 ; echo $?
0
$ /bin/ls -iLldn /usr/bin
22784 drwxrwxr-x   2 0        2           7680 Aug 19 09:50 /usr/bin
$ /bin/ls -d /usr/sbin >/dev/null 2>&1 ; echo $?
0
$ /bin/ls -d /usr/sbin >/dev/null 2>&1 ; echo $?
0
$ /bin/ls -iLldn /usr/sbin
85443 drwxrwxr-x   4 0        2           5120 Aug 26 04:19 /usr/sbin
$ /bin/ls -d /usr/local/bin >/dev/null 2>&1 ; echo $?
0
$ /bin/ls -d /usr/local/bin >/dev/null 2>&1 ; echo $?
0
$ /bin/ls -iLldn /usr/local/bin
28480 drwxr-sr-x   4 0        10         17408 Nov  2 07:52 /usr/local/bin
$ /bin/ls -d /usr/ccs/bin >/dev/null 2>&1 ; echo $?
0
$ /bin/ls -d /usr/ccs/bin >/dev/null 2>&1 ; echo $?
0
$ /bin/ls -iLldn /usr/ccs/bin
34176 drwxr-xr-x   2 2        2           1024 Aug 19 05:37 /usr/ccs/bin
$ cd ~; pwd
/home2/s/swift
$ /bin/ls -d /home2/s/swift/bin >/dev/null 2>&1 ; echo $?
0
$ cd ~; pwd
/home2/s/swift
$ /bin/ls -d /home2/s/swift/bin >/dev/null 2>&1 ; echo $?
0
$ /bin/ls -iLldn /home2/s/swift/bin
249883 drwx------   2 38120    20           512 Sep 26 01:09 /home2/s/swift/bin
$ PATH=/sbin:/bin:/usr/ucb:/usr/bin:/usr/sbin:/usr/local/bin:/usr/ccs/bin:~/bin; 
export PATH
$ LC_TIME=C; export LC_TIME; echo huhu
huhu
$ /bin/ls -d /home2/s/swift/public_html/index.html >/dev/null 2>&1 ; echo $?
0
$ /bin/ls -iLldn /home2/s/swift/public_html/index.html
1390141 -rw-r--r--   1 38120    20          7627 Oct 20 00:55 
/home2/s/swift/public_html/index.html
$ /bin/ls -d /home2 >/dev/null 2>&1 ; echo $?
0
$ /bin/ls -iLldn /home2
    2 drwxr-xr-x  41 0        0           1024 Aug 28 11:12 /home2
$ /bin/ls -d /home2/s >/dev/null 2>&1 ; echo $?
0
$ /bin/ls -iLldn /home2/s
226432 drwxr-xr-x 154 0        0           4608 Oct 28 15:52 /home2/s
$ /bin/ls -d /home2/s/swift >/dev/null 2>&1 ; echo $?
0
$ /bin/ls -iLldn /home2/s/swift
1272839 drwx--x---  14 38120    41          1024 Nov  4 16:14 /home2/s/swift
$ /bin/ls -d /home2/s/swift/public_html >/dev/null 2>&1 ; echo $?
0
$ /bin/ls -iLldn /home2/s/swift/public_html
1389909 drwxr-xr-x  13 38120    41          1536 Nov  4 12:01 
/home2/s/swift/public_html
$ /bin/ls -d /home2/s/swift/public_html/index.html >/dev/null 2>&1 ; echo $?
0
$ /bin/ls -iLldn /home2/s/swift/public_html/index.html
1390141 -rw-r--r--   1 38120    20          7627 Oct 20 00:55 
/home2/s/swift/public_html/index.html
$ /bin/ls -d /home2/s/swift/public_html/index.html >/dev/null 2>&1 ; echo $?
0
$ /bin/ls -iLldn /home2/s/swift/public_html/index.html
1390141 -rw-r--r--   1 38120    20          7627 Oct 20 00:55 
/home2/s/swift/public_html/index.html
$ /bin/ls -d /home2 >/dev/null 2>&1 ; echo $?
0
$ /bin/ls -iLldn /home2
    2 drwxr-xr-x  41 0        0           1024 Aug 28 11:12 /home2
$ /bin/ls -d /home2/s >/dev/null 2>&1 ; echo $?
0
$ /bin/ls -iLldn /home2/s
226432 drwxr-xr-x 154 0        0           4608 Oct 28 15:52 /home2/s
$ /bin/ls -d /home2/s/swift >/dev/null 2>&1 ; echo $?
0
$ /bin/ls -iLldn /home2/s/swift
1272839 drwx--x---  14 38120    41          1024 Nov  4 16:14 /home2/s/swift
$ /bin/ls -d /home2/s/swift/public_html >/dev/null 2>&1 ; echo $?
0
$ /bin/ls -iLldn /home2/s/swift/public_html
1389909 drwxr-xr-x  13 38120    41          1536 Nov  4 12:01 
/home2/s/swift/public_html
$ /bin/ls -d /home2/s/swift/public_html/index.html >/dev/null 2>&1 ; echo $?
0
$ /bin/ls -iLldn /home2/s/swift/public_html/index.html
1390141 -rw-r--r--   1 38120    20          7627 Oct 20 00:55 
/home2/s/swift/public_html/index.html
$ /bin/ls -d /home2/s/swift/public_html/index.html >/dev/null 2>&1 ; echo $?
0
$ /bin/ls -iLldn /home2/s/swift/public_html/index.html
1390141 -rw-r--r--   1 38120    20          7627 Oct 20 00:55 
/home2/s/swift/public_html/index.html
$ /bin/ls -d /home2/s/swift/public_html/index.html >/dev/null 2>&1 ; echo $?
0
$ /bin/ls -d /home2/s/swift/public_html/index.html >/dev/null 2>&1 ; echo $?
0
$ /bin/ls -d /home2/s/swift/public_html/index.html >/dev/null 2>&1 ; echo $?
0
$ test -w /home2/s/swift/public_html/index.html ; echo $?
0
$ /bin/ls -d /home2/s/swift/public_html/index.ced >/dev/null 2>&1 ; echo $?
2
$ /bin/ls -d /home2/s/swift/public_html/RCS/index.html\,v >/dev/null 2>&1 ; echo $?
2
$ /bin/ls -d /home2/s/swift/public_html/index.html\,v >/dev/null 2>&1 ; echo $?
2
$ /bin/ls -d /home2/s/swift/public_html/RCS/index.html >/dev/null 2>&1 ; echo $?
2
$ /bin/ls -d /home2/s/swift/public_html/SCCS/s.index.html >/dev/null 2>&1 ; echo $?
2
$ /bin/ls -d /home2/s/swift/public_html/s.index.html >/dev/null 2>&1 ; echo $?
2
$ /bin/ls -d /home2/s/swift/public_html/CVS >/dev/null 2>&1 ; echo $?
2
$ /bin/ls -d /home2/s/swift/public_html/index.html >/dev/null 2>&1 ; echo $?
0
$ /bin/ls -iLldn /home2/s/swift/public_html/index.html
1390141 -rw-r--r--   1 38120    20          7627 Oct 20 00:55 
/home2/s/swift/public_html/index.html
$ test -r /home2/s/swift/public_html/catalog ; echo $?
1
$ test -r /home2/s/swift/public_html/ECAT ; echo $?
1
$ test -r /home2/s/swift/public_html/catalog ; echo $?
1
$ test -r /home2/s/swift/public_html/catalog ; echo $?
1
$ test -r /home2/s/swift/public_html/catalog ; echo $?
1
$ /bin/ls -d /home2/s/swift/public_html/index.html >/dev/null 2>&1 ; echo $?
0
$ test -w /home2/s/swift/public_html/index.html ; echo $?
0
$ /bin/ls -d /home2/s/swift/public_html/index.html >/dev/null 2>&1 ; echo $?
0
$ /bin/ls -d /home2/s/swift/public_html/index.html >/dev/null 2>&1 ; echo $?
0
$ /bin/ls -iLldn /home2/s/swift/public_html/index.html
1390141 -rw-r--r--   1 38120    20          7627 Oct 20 00:55 
/home2/s/swift/public_html/index.html
$ /bin/ls -d /home2/s/swift/public_html/index.html >/dev/null 2>&1 ; echo $?
0
$ /bin/ls -iLldn /home2/s/swift/public_html/index.html
1390141 -rw-r--r--   1 38120    20          7627 Oct 20 00:55 
/home2/s/swift/public_html/index.html
$ cd /home2/s/swift/public_html/ ; echo $?
0
$ /bin/ls -a 2>/dev/null | cat
.
..
.vconf
3-headed-turtle-swimming.jpg
3headed-turtle.jpg
GPL
WingChunBaby.avi
Words.pdf
ape.gif
ape.html
approval.gif
audi-tt.jpg
avoid-also.html
avoid-exercises.html
barry-crack.gif
beckett
blueribbonlogo.gif
bookmarks.html
creek-fixed.jpg
dir.gif
doc.gif
doodie.gif
evilbeasts.jpg
evileye.gif
eviltotems.jpg
evilwallpaper-swirled.jpg
evilwallpaper.jpg
eye-cropped.gif
formaggio.jpg
freshman.jpg
friends
fun
fun_cuttle.jpg
gatehouse
goof.jpg
hand-through-head.jpg
hidden
humor
index.html
journal
karate.gif
keo_ad.gif
latex
latex.html
monkey.mpg
mss.jpg
nice-hat-girl.jpg
personal
prequel.jpg
reluctance.jpg
search.gif
senior.jpg
sepia
setihome.gif
starwarbucks.jpg
tar.gif
texlive.gif
tkd-count-news.gif
tkd-count-onews.gif
tkd-page
wig.jpg
windharp.wav
$ /bin/ls -d .*/ */ 2>/dev/null | cat
../
./
beckett/
friends/
fun/
gatehouse/
hidden/
humor/
journal/
latex/
personal/
sepia/
tkd-page/
$ test -d /home2/s/swift/public_html ; echo $?
0
$ test -r /home2/s/swift/public_html ; echo $?
0
$ test -x /home2/s/swift/public_html ; echo $?
0

Reply via email to