allow shebang for shell scripting #140

Closed
opened 2026-02-04 00:13:12 +00:00 by Dialga · 3 comments
Dialga commented 2026-02-04 00:13:12 +00:00 (Migrated from github.com)
#!/bin/astra run
print('hi')
2026-02-04T00:11:17.263626Z ERROR astra::commands::run: syntax error: [string "hi.lua"]:1: Expected identifier when parsing expression, got '#'

Currently # is not allowed on the first line.

``` #!/bin/astra run print('hi') ``` ``` 2026-02-04T00:11:17.263626Z ERROR astra::commands::run: syntax error: [string "hi.lua"]:1: Expected identifier when parsing expression, got '#' ``` Currently `#` is not allowed on the first line.
ElhamAryanpur commented 2026-02-08 09:14:09 +00:00 (Migrated from github.com)

ohh good idea

ohh good idea
ElhamAryanpur commented 2026-02-08 10:28:31 +00:00 (Migrated from github.com)

Can I ask what version of Astra you are using and which Lua VM?

Can I ask what version of Astra you are using and which Lua VM?
ElhamAryanpur commented 2026-02-08 10:31:34 +00:00 (Migrated from github.com)

in LuaJIT it seems to work fine, I didn't get any error. But regardless, I added some code to remove those lines.

in LuaJIT it seems to work fine, I didn't get any error. But regardless, I added some code to remove those lines.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ArkForgeLabs/Astra#140
No description provided.