unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* dired-diff existant.gz /dir-with-no-such-target-file
@ 2008-04-08 19:08 jidanni
  0 siblings, 0 replies; 2+ messages in thread
From: jidanni @ 2008-04-08 19:08 UTC (permalink / raw)
  To: bug-gnu-emacs

In dired put the cursor upon cat.1.gz, and do = /tmp, i.e.,
(dired-diff "/tmp" nil)
which gives
  diff -c -L /tmp -L /usr/share/man/man1/cat.1.gz /tmp /tmp/jka-com6714mTn
  Diff finished (no differences).  Wed Apr  9 02:55:47 2008
which would have been fine, if indeed there was a file named
/tmp/cat.1.gz, and its contents were the same, but there was no such
file. emacs-version "22.1.1".

P.S., you are using some secret undocumented private or erroneous diff
"-L" option. I can find a --L... but no -L.




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: dired-diff existant.gz /dir-with-no-such-target-file
       [not found] <mailman.10167.1207684990.18990.bug-gnu-emacs@gnu.org>
@ 2008-04-11 22:41 ` jidanni
  0 siblings, 0 replies; 2+ messages in thread
From: jidanni @ 2008-04-11 22:41 UTC (permalink / raw)
  To: bug-gnu-emacs

Please try the following test.
In a directory with a .gz file in it, run dired.
Now place the cursor upon it and hit = /tmp
I.e., (dired-diff "/tmp" nil)

Note how it gives
  diff -c -L /tmp -L /tmp/test/a.gz /tmp /tmp/jka-com9912y4f

  Diff finished (no differences).  Sat Apr 12 06:33:16 2008

But since what we wanted was the equivalent of doing
$ zdiff -c /tmp file.gz
which gives
diff: /tmp/file.gz: No such file or directory

That means that dired-diff blows it when one uses the shorthand /tmp
for /tmp/file.gz if there is no /tmp/file.gz.

Instead of detecting the missing file, it gives the all clear signal.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-04-11 22:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-08 19:08 dired-diff existant.gz /dir-with-no-such-target-file jidanni
     [not found] <mailman.10167.1207684990.18990.bug-gnu-emacs@gnu.org>
2008-04-11 22:41 ` jidanni

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).