3 ms·
I replied to someone on Twitter about this as I mistakenly thought they were the author, but the interpreter line in the example script should be #!/usr/bin/awk
by gbrown_ 5y ago
I replied to someone on Twitter about this as I mistakenly thought they were the author, but the interpreter line in the example script should be #!/usr/bin/awk rather than #!/bin/awk.
- the_trapper 5y agoThe author actually has it right due to OpenBSD's httpd running in a chroot of /var/www. Edit: nevermind, you're right, just checked it again and the author put the copied awk under /usr/bin inside the chroot
- sigzero 5y agoYeah, I don't see how to contact the actual author.
- LeoPanthera 5y agoYou can use "#!/usr/bin/env awk" to make it universal, this works on all the BSDs and Linux. Works for bash and other interpreters too.
- gbrown_ 5y agoI just wanted to point out typo. I'm aware of the env idiom, though that wouldn't work in the chroot environment described in the article. Short of also copying it to the chroot which would be a bit redundant.