Is it know that most shebang
implementations will support a single parameter so if you have something like
#!/usr/bin/env some-tool-accepting-yaml param1 param2
... (yaml body)
It will now work as expected because it will call the tool with "param1 param2" argument instead of splitting it into two arguments.
It seems that one workaround practice is to use something like:
#!/bin/sh
arbitrary_long_name==0 "exec" "/usr/bin/gawk" "--re-interval" "-f" "$0" "$@"
Now this approach would make YAML-based script invalid due to the 2nd line, so the only acceptable workaround would be one that is also a comment, starting with "#" too.
Is there a way to bypass this issue too?