3 ms·
> Shebang scripts shouldn't have Should not have or should not need to have? You can perfectly write a script with a shebang and an extension, stick it in your
by iLoveOncall 3y ago
> Shebang scripts shouldn't have
Should not have or should not need to have? You can perfectly write a script with a shebang and an extension, stick it in your path, and use it without extension.
Therefore, I fail to see how this is a "dealbreaker". Or is it just because "I don't like it!"?
- hlandau 3y agoSo how am I supposed to put such a script in $PATH? e.g. if I hypothetically want to make a replacement for say 'ls', what am I supposed to do, force people to type 'ls.mjs' rather than 'ls'?
- guhcampos 3y agoln is your friend
- iLoveOncall 3y agoNo, that's my point, every single shell I've ever used would resolve "ls.mjs" if you called "ls" and it's in your path...