On Tue, Nov 1, 2011 at 7:28 AM, Mikolaj Kucharski <miko...@kucharski.name> wrote: > Also this is what ktrace says: > > B 31688 ktrace B RET B ktrace 0 > B 31688 ktrace B CALL B execve(0xcfbdb6fb,0xcfbdb674,0xcfbdb67c) > B 31688 ktrace B NAMI B "./exec1.sh" > B 31688 ktrace B NAMI B "/tmp/exec1.pl" > B 31688 ktrace B RET B execve -1 errno 8 Exec format error > > at this stage I think this behaviour is OpenBSD specific, the only > question to the mailing list I have, can you confirm this? >
Looks more like Linux specific. $ which perl /usr/bin/perl $ /tmp/exec1.sh exec1.sh executed $ /tmp/exec2.pl use: not found use: not found /tmp/exec2.pl: 6: Syntax error: Bad for loop variable $ uname -a FreeBSD localname.localdomain 7.4-RELEASE-p3 FreeBSD 7.4-RELEASE-p3 #0: Tue Sep 27 14:47:23 UTC 2011 r...@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 $ $ which perl /usr/bin/perl $ /tmp/exec1.sh exec1.sh executed $ /tmp/exec2.pl use: not found use: not found /tmp/exec2.pl: 6: Syntax error: Bad for loop variable $ uname -a FreeBSD localname.localdomain 8.2-STABLE FreeBSD 8.2-STABLE #0 r226056: Thu Oct 6 22:14:57 UTC 2011 r...@madoka.myconan.net:/usr/obj/usr/src/sys/GENERIC amd64 -- O< ascii ribbon campaign - stop html mail - www.asciiribbon.org