Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to execute bin/format.bat on windows #1746

Closed
da-liii opened this issue Jan 10, 2024 · 3 comments
Closed

Failed to execute bin/format.bat on windows #1746

da-liii opened this issue Jan 10, 2024 · 3 comments

Comments

@da-liii
Copy link

da-liii commented Jan 10, 2024

> bin/format.bat
'bin' is not recognized as an internal or external command,
operable program or batch file.
Exception: bin/format.bat exited with 1
[tty 521]:1:1: bin/format.bat
> bin\format.bat

Have to use bin\xxx.bat on windows, can it support bin/xxx.bat?

Is it a bug or by design?

@da-liii
Copy link
Author

da-liii commented Jan 10, 2024

Here is the similar issue: #1660

I'm using 0.19.2+official on Windows 11, it seems it has not been fixed.

@krader1961
Copy link
Contributor

I can't reproduce your problem. Using the Elvish binary from the official download page your example works for me:

elvish> > bin/c.bat

krader@WINDOWS11 C:\Users\krade>echo yes
yes
elvish> cat bin/c.bat
echo yes

The Elvish version I downloaded was 0.20.0-dev.0.20240111000332-82b32d4aceef+official so it is possible the 0.19.2 version you tested does not work as expected.

P.S., The interleaving of the Elvish and "bat" output is arguably wrong. But that is a separate problem.

@xiaq
Copy link
Member

xiaq commented Feb 1, 2024

Yeah, this was fixed after 0.19.x was branched in 67db219. Please use a HEAD build.

@krader1961 I'm not sure about what you mean by interleaving - mind clarifying?

@xiaq xiaq closed this as completed Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants