[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#27085: dired-do-compress on symlinks should bail out with a warning
From: |
Lars Ingebrigtsen |
Subject: |
bug#27085: dired-do-compress on symlinks should bail out with a warning |
Date: |
Fri, 26 Jul 2019 10:34:42 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
積丹尼 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#27085: dired-do-compress on symlinks should bail out with a warning,
Lars Ingebrigtsen <=