From mboxrd@z Thu Jan 1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Philipp Stephani
Newsgroups: gmane.emacs.bugs
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
Message-ID:
References:
<87czu89b7r.fsf@gmx.de>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
logging-data="24262"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: 48177@debbugs.gnu.org
To: Michael Albinus
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 03 16:01:31 2021
Return-path:
Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org
Original-Received: from lists.gnu.org ([209.51.188.17])
by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.92)
(envelope-from )
id 1ldZ8c-0006BO-RG
for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 May 2021 16:01:30 +0200
Original-Received: from localhost ([::1]:35294 helo=lists1p.gnu.org)
by lists.gnu.org with esmtp (Exim 4.90_1)
(envelope-from )
id 1ldZ8S-0001w5-CA
for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 May 2021 10:01:27 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51566)
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from )
id 1ldZ8A-0001vM-0B
for bug-gnu-emacs@gnu.org; Mon, 03 May 2021 10:01:02 -0400
Original-Received: from debbugs.gnu.org ([209.51.188.43]:34983)
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.90_1) (envelope-from )
id 1ldZ89-0002mt-OE
for bug-gnu-emacs@gnu.org; Mon, 03 May 2021 10:01:01 -0400
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
(envelope-from ) id 1ldZ89-0004xK-MS
for bug-gnu-emacs@gnu.org; Mon, 03 May 2021 10:01:01 -0400
X-Loop: help-debbugs@gnu.org
Resent-From: Philipp Stephani
Original-Sender: "Debbugs-submit"
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Mon, 03 May 2021 14:01:01 +0000
Resent-Message-ID:
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 48177
X-GNU-PR-Package: emacs
Original-Received: via spool by 48177-submit@debbugs.gnu.org id=B48177.162005041118884
(code B ref 48177); Mon, 03 May 2021 14:01:01 +0000
Original-Received: (at 48177) by debbugs.gnu.org; 3 May 2021 14:00:11 +0000
Original-Received: from localhost ([127.0.0.1]:46527 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1ldZ7L-0004uV-Cn
for submit@debbugs.gnu.org; Mon, 03 May 2021 10:00:11 -0400
Original-Received: from mail-ot1-f44.google.com ([209.85.210.44]:44727)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1ldZ7J-0004t0-8a
for 48177@debbugs.gnu.org; Mon, 03 May 2021 10:00:09 -0400
Original-Received: by mail-ot1-f44.google.com with SMTP id
r26-20020a056830121ab02902a5ff1c9b81so1131463otp.11
for <48177@debbugs.gnu.org>; Mon, 03 May 2021 07:00:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:cc; bh=VH5YCbthSv2fiA1ktN4Qi+TQC/cBU8XhssLb1Rc+548=;
b=SBcgCKyYXnjbVkDsAlDsdF0iebXNWh4UXhF35t7w76YBWI/5HcIDGplsJbXxji7/4n
xb2jYsbji1ekyJzEQAj0JTll5ZMTQzrvnaTc07Ryd3Ku9E+LyobXxXNT/Mf2RrZ/PHFS
QIO+Co5BOJwr9RA0pSDL5flEEivHPxXnuT5HV7vKYZckfcy77FUVJoYk1BSUttN+aUlD
oHU+oiHy2yGqhnCXz7tXB9YllAB799RLRvZJmrqOcc9jNkoqv8avbi+GbcbYrGRtSXt3
+3U3f86AkxO7I4zizF+n3i1FxpWSOXzkRQmkexjNRkXOyiz/nk17BB/3qnrJMPmRdwJX
OxsA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc;
bh=VH5YCbthSv2fiA1ktN4Qi+TQC/cBU8XhssLb1Rc+548=;
b=CZwPPXW5iCC0X+Gl5XP5qFNpe9ZCoCcFyDlv6zqEAtiDWh3ldAjCPlsRH6qjKyR0RA
meqjNFZBh5Jo51bd10TJSz/82lF7mPv+TEP/4ZJBQOW6kuEtSVaf9XpKchNzvQtSHQ6B
2OYv7ixwU8cRBgPGX4BoAvMLOueqYam+uCUaFLh86gOYQwX9KaGlxKThvE5ooACalJ3s
NGJCRU8gEgzDLo77fLC8ai4uaB1pnORUxyP3dLvumQAZg+RPDIa7SAXu0vefywRHJ4ww
iQIGi4CMd7Xaun5dJQTq3tleVDIfDXo+wBVBrZ4ppa+/yIhDJAaKUV+nnKz2BCmLyxrg
eJrw==
X-Gm-Message-State: AOAM530BvuXcSjTM+r2wGnKQ4LZZrkQY8I1XSpXUJtmcBhA0AYY2CwsV
6MDZcfBHsCdISFv3TqBmrfp+Qdpvqy0SatMpR+0=
X-Google-Smtp-Source: ABdhPJw+dBxx1HRhqL3GNS7YXFaJ4Yg1B9tZVs8fBkdmZKzq2tamiNZNCcnEMvNXqwfRsF8xlI9yJovkZCpwTjIrIPA=
X-Received: by 2002:a9d:5382:: with SMTP id w2mr14522450otg.153.1620050403501;
Mon, 03 May 2021 07:00:03 -0700 (PDT)
In-Reply-To: <87czu89b7r.fsf@gmx.de>
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-BeenThere: bug-gnu-emacs@gnu.org
List-Id: "Bug reports for GNU Emacs,
the Swiss army knife of text editors"
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org
Original-Sender: "bug-gnu-emacs"
Xref: news.gmane.io gmane.emacs.bugs:205513
Archived-At:
Am Mo., 3. Mai 2021 um 15:51 Uhr schrieb Michael Albinus
:
>
> Philipp Stephani 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!