From: Philipp Stephani <p.stephani2@gmail.com>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: 48177@debbugs.gnu.org
Subject: bug#48177: 28.0.50; process-file doesn't correctly handle quoted file names for INFILE
Date: Mon, 3 May 2021 15:59:52 +0200 [thread overview]
Message-ID: <CAArVCkQM3BM=cwA861De7ZyCg3noU7qXWPzgwJegptvzq3TLTQ@mail.gmail.com> (raw)
In-Reply-To: <87czu89b7r.fsf@gmx.de>
Am Mo., 3. Mai 2021 um 15:51 Uhr schrieb Michael Albinus
<michael.albinus@gmx.de>:
>
> Philipp Stephani <p.stephani2@gmail.com> writes:
>
> >> > Evaluate something like
> >> >
> >> > (process-file "/:/bin/true" "/:/dev/null")
> >> >
> >> > This gives an error
> >> >
> >> > (file-missing "Opening process input file" "No such file or directory" "/:/dev/null")
> >> >
> >> > Other magic filenames for INFILE (such as "/ssh:localhost:/dev/null")
> >> > work as expected. The docstring for `process-file' says that INFILE is
> >> > handled by filename handlers, so I think this should work for quoted
> >> > filenames as well.
> >> >
> >>
> >> Same for
> >> (process-file "/:/bin/true" nil '((:file "/:/dev/null") "/dev/null"))
> >
> > Other forms that I think should work, but fail:
> >
> > (let ((default-directory "/:/usr/"))
> > (process-file "/:/bin/true" nil '(t "/:/dev/null")))
> >
> > (let ((temporary-file-directory "/:/tmp/"))
> > (process-file "/:/bin/true" nil '(t "/dev/null")))
>
> The appended patch shall fix this, could you pls test?
Yes, thanks!
next prev parent reply other threads:[~2021-05-03 13:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-02 21:49 bug#48177: 28.0.50; process-file doesn't correctly handle quoted file names for INFILE Philipp Stephani
2021-05-02 21:53 ` Philipp Stephani
2021-05-02 22:04 ` Philipp Stephani
2021-05-03 13:51 ` Michael Albinus
2021-05-03 13:59 ` Philipp Stephani [this message]
2021-05-03 14:05 ` Michael Albinus
2021-05-03 14:54 ` Michael Albinus
2021-05-07 15:31 ` Glenn Morris
2021-05-07 15:34 ` Michael Albinus
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAArVCkQM3BM=cwA861De7ZyCg3noU7qXWPzgwJegptvzq3TLTQ@mail.gmail.com' \
--to=p.stephani2@gmail.com \
--cc=48177@debbugs.gnu.org \
--cc=michael.albinus@gmx.de \
/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 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).