Skip to content

Is it possible to support C99-style shebang-like interpreter directives? #22

Description

@joshcangit

There are a few languages that use only C/C++-style comments but doesn't fully support using shebangs such as Go.

Instead they use the first commented line as the interpreter directive.

Example

Go

//usr/bin/env go run "$0" "$@";exit $?

I'm using JBang which allows scripting in Java using the same syntax.

//usr/bin/env jbang "$0" "$@";exit $?

I tried editing the file but that didn't work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions