fubark / cyber

Fast and concurrent scripting.
https://cyberscript.dev
MIT License
1.21k stars 43 forks source link

Please support shebang for scripting #12

Closed kseistrup closed 1 year ago

kseistrup commented 1 year ago

cyber doesn't seem to support shebangs (#!):

I can run the fibonacci.cy script manually:

» cyber fibonacci.cy
832040

However, when I add #!/usr/bin/env cyber to the top of the script — in the hope that I can run it just like any other script — all I get is a segfault:

» ./fibonacci.cy
'./fibonacci.cy' terminated by signal SIGSEGV (Address boundary error)

And the same thing happens when I run the modified script manually:

» cyber fibonacci.cy
'cyber fibonacci.cy' terminated by signal SIGSEGV (Address boundary error)
» cyber version
Cyber 0.1 build-203-c483853

Edit: added cyber version

fubark commented 1 year ago

This should be fixed.

kseistrup commented 1 year ago

Whauw, that was fast — thanks a lot!