HaxeFoundation / HaxeFoundation/haxe

Scripting: Support #! "shebang" on first line

Open
#6,578 13 comments 5 reactions 0 assignees View on GitHub
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

Currently, executing:

```haxe
#!/usr/bin/env haxe --interp

class Main {
static function main()
trace("hi");
}
```

results in:

```
~> ./Main.hx
Error: Could not process argument ./Main.hx
Package name must start with a lower case character
```

If --interp would understand shebang lines, we could use Haxe for scripting. :)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.