Nice trick! note that this will only work in some shells such as bash. If you pass the zig source file directly to the kernel as the argument of execve() the kernel won't run it sadly as it only understands #!/path.
#!/path
Yeah, good point. Also works nicely in zsh, so I think it'll work for a lot of people.
Also works nicely in all type of kernshells such as mksh, also in busybox ash and more :)
That's awesome - thanks!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Nice trick! note that this will only work in some shells such as bash. If you pass the zig source file directly to the kernel as the argument of execve() the kernel won't run it sadly as it only understands
#!/path
.Yeah, good point. Also works nicely in zsh, so I think it'll work for a lot of people.
Also works nicely in all type of kernshells such as mksh, also in busybox ash and more :)
That's awesome - thanks!