我创建了一个 Windows 快捷方式,其目标看起来像
"C:\Windows\System32\bash.exe" php /c/script.php
(我知道我可以使用我的 php cli 的 Windows 版本来运行它,但出于好奇)
当我单击我的快捷方式时,它只是弹出一个 cmd 窗口并关闭(脚本应该需要几分钟才能运行。
有没有办法将命令通过管道传输到 Windows 上的 bash.exe?
windows bash shortcuts cmd.exe windows-subsystem-for-linux
bash ×1
cmd.exe ×1
shortcuts ×1
windows ×1
windows-subsystem-for-linux ×1