all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jim Porter <jporterbugs@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>, 71446@debbugs.gnu.org
Cc: spwhitton@spwhitton.name
Subject: bug#71446: 30.0.50; em-extpipe-test-14 fails on MS-Windows
Date: Sun, 9 Jun 2024 14:03:18 -0700	[thread overview]
Message-ID: <e88642c6-8df3-2f58-9c52-7e4014da5b30@gmail.com> (raw)
In-Reply-To: <86ed96bshd.fsf@gnu.org>

On 6/8/2024 10:22 PM, Eli Zaretskii wrote:
> The failure is as follows:
[snip]
>    Test em-extpipe-test-14 condition:
>        Command logs: command: "tac *<c:/Users/EliZ/AppData/Local/Temp/emacs-test-hYLZuB-em-extpipe"
> 
> 		    ----------------------------------------
> 		    [process] started external process `cmdproxy.exe'
> 
> 		    d\:/gnu/git/emacs/trunk/nt/cmdproxy.exe -c tac\ \<c\:/Users/EliZ/AppData/Local/Temp/emacs-test-hYLZuB-em-extpipe
> 		    ----------------------------------------
> 		    [process] received output from process `cmdproxy.exe'
> 
> 		    tac: standard input: read error
> 
> 		    ----------------------------------------
> 		    [process] sentinel for external process `cmdproxy.exe': "exited abnormally with code 1
> 		    "
> 		    ----------------------------------------
> 		    [process] finished external process `cmdproxy.exe'
[snip]
> 
> AFAIU, the problem is that this invokes 'tac' with redirection, but
> the redirected file name uses Unix-style forward slashes, which
> doesn't work on Windows: the file name after "<" must use backslashes.

Are you sure? I tested on an MS-Windows system (no dev env there, but I 
can run pre-built programs), and forward slashes seem ok. I ran the 
following without issue inside cmd.exe:

   tac <C:/Users/Jim/Documents/file.txt

   cmdproxy.exe -c "tac <C:/Users/Jim/Documents/file.txt"

> I also don't understand all those backslashes in
> 
>    d\:/gnu/git/emacs/trunk/nt/cmdproxy.exe -c tac\ \<c\:/Users/EliZ/AppData/Local/Temp/emacs-test-hYLZuB-em-extpipe
> 
> Are they real or just some artifact of printing the command?  If they
> are real, and included in the command line, then perhaps my analysis
> is incorrect and there are more fundamental problems here.

Those should just be an artifact of printing the command. I've changed 
that logging to use the current system's quoting style, so you should 
hopefully see something like the following in the logs now:

   "d:/gnu/[...]/cmdproxy.exe" "-c" "tac 
<c:/[...]/emacs-test-hYLZuB-em-extpipe"

As for why it's failing, I'm not totally sure. From the logs, I think 
the child process for the command is being invoked correctly, but I'm 
not an expert on the extpipe code; I've CCed the author (Sean Whitton), 
who might know more.





  reply	other threads:[~2024-06-09 21:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-09  5:22 bug#71446: 30.0.50; em-extpipe-test-14 fails on MS-Windows Eli Zaretskii
2024-06-09 21:03 ` Jim Porter [this message]
2024-06-15  9:34   ` Eli Zaretskii
2024-06-15 18:47     ` Jim Porter
2024-06-15 19:21       ` Eli Zaretskii
2024-06-15 19:53         ` Jim Porter

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=e88642c6-8df3-2f58-9c52-7e4014da5b30@gmail.com \
    --to=jporterbugs@gmail.com \
    --cc=71446@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=spwhitton@spwhitton.name \
    /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.