This page is part of the web mail archives of SRFI 22 from before July 7th, 2015. The new archives for SRFI 22 contain all messages, not just those from before July 7th, 2015.
>>>>> "Marc" == Marc Feeley <feeley@xxxxxxxxxxxxxxxx> writes: Marc> For this purpose I have written the script attached below. Just put Marc> it in the file "testscript", type "source testscript" on the Unix Marc> implementations you have access to, and report the output (all Marc> temporary file are cleaned up). Here is the output for Linux (which Marc> is basically the same for MacOS X, i.e. /bin/env does not exist) testscript 1.0 IRIX64 test1 6.5 Tue May 22 17:14:43 MDT 2001 -------------------- ./script1 #! /usr/bin/env cat -------------------- ./script2 #!/usr/bin/env cat -------------------- ./script3 #! /usr/bin/env cat #! /usr/bin/env ./script3-helper-file890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567 -------------------- ./script4 #!/usr/bin/env cat #!/usr/bin/env ./script4-helper-file7890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567 -------------------- ./script5 #! /bin/env cat -------------------- ./script6 #!/bin/env cat -------------------- ./script7 #! /bin/env cat #! /bin/env ./script7-helper-file4567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567 -------------------- ./script8 #!/bin/env cat #!/bin/env ./script8-helper-file34567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567 testscript 1.0 HP-UX test2 B.10.20 A 9000/785 Tue May 22 17:14:49 METDST 2001 -------------------- ./script1 #! /usr/bin/env cat -------------------- ./script2 #!/usr/bin/env cat -------------------- ./script3 #! /usr/bin/env cat #! /usr/bin/env ./script3-helper-file890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567 -------------------- ./script4 #!/usr/bin/env cat #!/usr/bin/env ./script4-helper-file7890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567 -------------------- ./script5 #! /bin/env cat -------------------- ./script6 #!/bin/env cat -------------------- ./script7 #! /bin/env cat #! /bin/env ./script7-helper-file4567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567 -------------------- ./script8 #!/bin/env cat #!/bin/env ./script8-helper-file34567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567 (Thanks to Richard Günther) -- Martin