Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for shebang in nuru #83

Open
2 tasks
gekkowrld opened this issue Jun 2, 2024 · 0 comments
Open
2 tasks

Add support for shebang in nuru #83

gekkowrld opened this issue Jun 2, 2024 · 0 comments
Labels
Feature Request New feature or request

Comments

@gekkowrld
Copy link
Contributor

gekkowrld commented Jun 2, 2024

Describe the feature

shebang is a unix feature that is most of the scripting languages:

https://en.wikipedia.org//wiki/Shebang_(Unix)

Use Case

It will be nice to just execute the scripts without explicitly invoking the nuru interpreter every time.

Proposed Solution

Look at the first line and ignore if it starts with '#!' specifically, look at how it works as explained in the question on StackOverflow about shebang and its implementation in the linux kernel.

If the 'shebang' appears on any other line, then throw an error.

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

Version used

v0.5.1 (commit id f0fe309)

Environment details (OS name and version, etc.)

Linux 6.9.3-hardened1-1-hardened
go version go1.22.3 linux/amd64

@gekkowrld gekkowrld added the Feature Request New feature or request label Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant