Thanks javpra
That was a typo in the post; I actually had hello_world.pl.org (org = original) with
#! perl and hello_world.pl with
#! /usr/bin/perl. For simplicity (ha!
) I posted as if the file had been modified. The behaviour was as described.
A Debian 6.0 Squeeze system shows the same behaviour (and this is verbatim!):
Code:
docmgt@CW8vDS:~/bin$ cat hello_world.sh
#! bash
echo 'Hello World'
docmgt@CW8vDS:~/bin$ ./hello_world.sh
-bash: ./hello_world.sh: bash: bad interpreter: No such file or directory
docmgt@CW8vDS:~/bin$ sed -i 's|bash|/bin/bash|' hello_world.sh
docmgt@CW8vDS:~/bin$ cat hello_world.sh
#! /bin/bash
echo 'Hello World'
docmgt@CW8vDS:~/bin$ ./hello_world.sh
Hello World
So the behaviour is normal. Sorry for the red herring.
Presumably the full path to perl is not necessary in the urxvt perl scripts because urxvt does not rely on the shebang line.
I re-installed urxvt (and perl, for good measure) but urxvt Super+V (paste) functionality is still broken
Now this looks like a urxvt problem, I'll post in the urxvt mailing list.