Why do you think this works in macOS and not Linux
Because the shell used to parse and execute the shebang line is different in each of those.
In reply to Re^7: shebang anomaly
by huck
in thread shebang anomaly
by perlboy_emeritus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |