Did he know that most shebang implementations will support one parameter, so if you have something like
Now it will work as expected, because it will call the tool with the argument param1 param2 instead of breaking it into two arguments.
One of the workarounds seems to be to use something like:
#!/bin/sh arbitrary_long_name==0 "exec" "/usr/bin/gawk" "--re-interval" "-f" "$0" " $@ "
Now this approach will result in the YAML based script being invalidated due to the second line, so the only acceptable workaround would be one that is also a comment, starting with "#".
Is there a way around this problem too?
sorin source share