mvdan / sh

A shell parser, formatter, and interpreter with bash support; includes shfmt
https://pkg.go.dev/mvdan.cc/sh/v3
BSD 3-Clause "New" or "Revised" License
6.97k stars 332 forks source link

Windows Executable from Releases doesn't install. It just hangs. #1040

Closed futuremotiondev closed 8 months ago

futuremotiondev commented 8 months ago

Trying to install shfmt on Windows 10 Pro x64 Version 22H2 (Build 19045.3448). Using this binary: shfmt_v3.7.0_windows_amd64.exe

When I open the executable, all I see is a blinking cursor:

shfmt_v3 7 0_windows_amd64_lzJtwcrJod

What am I doing wrong? How can I get this installed?

Thanks so much.

mvdan commented 8 months ago

We publish the shfmt binary itself, not an installer for it. If you just run it directly, it reads shell script from standard input, so that's what I suspect is happening here with the terminal waiting for you.