by etanol · 14y ago · 0 comments
You can try it if you want, save this into an executable file (test.awk):
#!/usr/bin/env awk -f
{ print $2 }
Then run: echo "Hello world again" | ./test.awk
I get the following: /usr/bin/env: awk -f: No such file or directoryDamn. I get "world" (OSX, zsh, BSD env)
So I supposed you can't pass options to `env` either (e.g. `-i`, or ENVVAR overrides?)
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stabl...