webvm icon indicating copy to clipboard operation
webvm copied to clipboard

which git fails due to shebang

Open bk2204 opened this issue 3 years ago • 3 comments

Running which git fails:

user@:~$ which git
bash: /usr/bin/which: /bin/sh: bad interpreter: Invalid argument

This appears to be because #! /bin/sh (in which) is not recognized as a valid shebang. While it is very common to omit a space after the #!, spaces have been permitted since Unix Version 8, and Linux allows them.

bk2204 avatar Feb 02 '22 20:02 bk2204

Hello, thanks for the report. We indeed handle this case incorrectly. We added this bug to our bucket list

sere avatar Feb 03 '22 14:02 sere

how about fixing it now

Alex-A137 avatar Apr 23 '22 02:04 Alex-A137

you've had plenty of time to do so

Alex-A137 avatar Apr 23 '22 02:04 Alex-A137

The problem is now fixed

alexp-sssup avatar Mar 07 '24 15:03 alexp-sssup