From: Noam Postavsky <npostavs@gmail.com>
To: Yegor Timoshenko <yegortimoshenko@riseup.net>
Cc: 30724@debbugs.gnu.org
Subject: bug#30724: eshell: escaped tilde is not treated as such
Date: Thu, 08 Mar 2018 20:15:16 -0500 [thread overview]
Message-ID: <87fu5a123f.fsf@gmail.com> (raw)
In-Reply-To: <f36b217ce91c3eab35e65ba72d16362@riseup.net> (Yegor Timoshenko's message of "Tue, 6 Mar 2018 04:30:21 +0000")
tags 30724 + confirmed
quit
Yegor Timoshenko <yegortimoshenko@riseup.net> writes:
> In M-x eshell (do not run):
>
> $ touch \~
> $ ls
> ~
> $ rm \~
> rm: cannot remove '~': Is a directory
>
> I.e. it tried to remove home directory. I've found this by
> accidentially wiping my home directory, but no worry, I've restored a
> btrfs snapshot that was made several minutes before that.
>
> GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.26)
> of 2018-02-25
Stepping through eshell/rm a bit, I see it gets #("~" 0 1 (escaped t))
as an argument. So each command is responsible for handling the
escaping correctly. I think every file-handling eshell function needs
review for this.
next prev parent reply other threads:[~2018-03-09 1:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-06 4:30 bug#30724: eshell: escaped tilde is not treated as such Yegor Timoshenko
2018-03-09 1:15 ` Noam Postavsky [this message]
2018-07-06 7:24 ` Jonathan Kyle Mitchell
2018-07-07 19:17 ` Noam Postavsky
2018-07-15 17:18 ` Jonathan Kyle Mitchell
2018-07-17 0:14 ` Noam Postavsky
2018-07-18 3:54 ` Jonathan Kyle Mitchell
2018-07-22 1:34 ` Noam Postavsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fu5a123f.fsf@gmail.com \
--to=npostavs@gmail.com \
--cc=30724@debbugs.gnu.org \
--cc=yegortimoshenko@riseup.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.