Skip to content

Are shebangs supported? #7

Description

@beedell-roke

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:

  1. ::!/usr/bin/env picobat
  2. ::!"%WinDir%\System32\Cmd.exe"

    1

I would have asked this in a Discussion, but they're not enabled for this repository.

Footnotes

  1. stackoverflow.com/revisions/12716560/5

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions