Packages icon indicating copy to clipboard operation
Packages copied to clipboard

[ST4] `#!/bin.sh`

Open stdedos opened this issue 4 years ago • 5 comments

This is not a valid she-bang

#!/bin.sh

image

and even if it is, its executable is not sh; but bin.sh

stdedos avatar May 27 '21 10:05 stdedos

If it is invalid, just don't type it this way.

Highlighting is just lazy with what's allowed / prebended in front of SH.

deathaxe avatar May 27 '21 17:05 deathaxe

I was expecting to use this as a visual reminder (I'd it's "not how it's supposed to be", it's wrong).

And laziness shouldn't trump "correctness"

stdedos avatar May 27 '21 18:05 stdedos

The path may posssibly to point to anything there are propably too many variants to catch them all. Improvement suggestions are always welcome at https://github.com/sublimehq/Packages/pulls though.

deathaxe avatar May 27 '21 19:05 deathaxe

And laziness shouldn't trump "correctness"

I disagree. That's what linters and language servers are for :)

rwols avatar May 27 '21 19:05 rwols

I would consider anything starts with #! in the first line as an shebang, after reading https://en.wikipedia.org/wiki/Shebang_(Unix). The highlighting of sh in your case is wrong though.

jfcherng avatar May 27 '21 23:05 jfcherng