In connection with developing GNU Parallel I seem to have hit a limit in the length of #! (shebang). This shebang-line:
#!/bin/echo 123456789a123456789b123456789c123456789d123456789e123456789f123456789g123456789h123456789i123456789j123456789k123456789done bar
prints this on Debian, Mandriva, SuSE, Ubuntu, Centos, RedHat:
So it seems to be chopped off after 128 bytes. But it does what I would expect (printing the full line) on FreeBSD, DragonFlyBSD and Hurd. On OpenBSD and Tru64 it prints nothing(?!).
What causes this limitation? Can I work around it?
GNU Parallel's --shebang makes it possible to write the full parallel command in the #!-line. It is therefore somewhat limiting if the full command can only be 128 chars.
The rest of the file is used as input for parallel, thus the command cannot be written there.