Have a COBOL Christmas.
Have a COBOL Christmas.
Self-replies
What is cool about this is that you can run many compiled programming languages as a script using this shebang:
`///usr/bin/true; exec cobc -xj -fmfcomment "$0" "$@"`
- The target language has to tolerate comments starting with # or /
- The "script" has to be single file
Works for golang, I haven't tried it for rust.
For gnucobol for it to work, you have to also set a bunch of environment variables because that is how gnucobol rollls.