* bug#27085: dired-do-compress on symlinks should bail out with a warning
@ 2017-05-26 11:36 積丹尼 Dan Jacobson
2019-07-26 8:34 ` Lars Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: 積丹尼 Dan Jacobson @ 2017-05-26 11:36 UTC (permalink / raw)
To: 27085
Z runs the command dired-do-compress.
But when run on
lrwxrwxrwx 1 jidanni 34 05-26 15:51 local.osm.gz -> /cf/updates/no_backup/local.osm.gz
Compress or uncompress local.osm.gz? (y or n) y
Failed to compress/home/jidanni/mapping/taipower/opendata/local.osm.gz
1. I thought it would try to UNcompress.
2. Well it doesn't work on symlinks at all.
So it should say
"Sorry that is a symlink. I'm not ready for that".
Or like
$ gunzip local.osm.gz
gzip: local.osm.gz: Too many levels of symbolic links
I.e., warn and give up. Like gunzip.
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#27085: dired-do-compress on symlinks should bail out with a warning
2017-05-26 11:36 bug#27085: dired-do-compress on symlinks should bail out with a warning 積丹尼 Dan Jacobson
@ 2019-07-26 8:34 ` Lars Ingebrigtsen
0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2019-07-26 8:34 UTC (permalink / raw)
To: 積丹尼 Dan Jacobson; +Cc: 27085
積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:
> Z runs the command dired-do-compress.
> But when run on
> lrwxrwxrwx 1 jidanni 34 05-26 15:51 local.osm.gz ->
> /cf/updates/no_backup/local.osm.gz
>
> Compress or uncompress local.osm.gz? (y or n) y
I tried this on the Emacs trunk, and it didn't query me for anything.
> Failed to compress/home/jidanni/mapping/taipower/opendata/local.osm.gz
>
> 1. I thought it would try to UNcompress.
> 2. Well it doesn't work on symlinks at all.
> So it should say
> "Sorry that is a symlink. I'm not ready for that".
> Or like
> $ gunzip local.osm.gz
> gzip: local.osm.gz: Too many levels of symbolic links
>
> I.e., warn and give up. Like gunzip.
I get
Failed to compress/tmp/bar.gz
(I've now fixed the missing space and added (un).)
But warn and give up is what dired does here, so I don't think there's
anything to fix. Closing.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-07-26 8:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-26 11:36 bug#27085: dired-do-compress on symlinks should bail out with a warning 積丹尼 Dan Jacobson
2019-07-26 8:34 ` Lars Ingebrigtsen
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).