#! hacks
Scripts are executed as
#!interpreter [arg]
and most often as #!/usr/bin/env interpreter
. Additional arguments cannot be used. This repo catalogs single file workarounds mostly for fun but also slightly serious.Script Guidelines
- Must be self-contained as a single file executable
- Must support any number of interpreter arguments inline
- Must use
#!/usr/bin/env interpreter
- Must echo the first argument with zero exit status
- Must exit with nonzero status when no argument
- Must work as any filename but should be named after the target program
- Should be a paradigm (terse, clear, extensible)
License (Public Domain)
All code is public domain and may be used without limitation.
No comments:
Post a Comment