I see blob/975e71d876b711c3de82692a981f88431206c2be/pbat/core/pBat_ReadScript.c#L190C31-L190C48, but no alternative reference:
|
continue ; /* This is a shebang, skip it */ |
I ask because looking at the top of a file for the interpreter can be useful when a file doesn't have a file extension. I was envisaging it at simply:
-
-
::!"%WinDir%\System32\Cmd.exe"
1
I would have asked this in a Discussion, but they're not enabled for this repository.
I see
blob/975e71d876b711c3de82692a981f88431206c2be/pbat/core/pBat_ReadScript.c#L190C31-L190C48, but no alternative reference:I ask because looking at the top of a file for the interpreter can be useful when a file doesn't have a file extension. I was envisaging it at simply:
::!/usr/bin/env picobat::!"%WinDir%\System32\Cmd.exe"1
I would have asked this in a Discussion, but they're not enabled for this repository.
Footnotes
stackoverflow.com/revisions/12716560/5↩