Re: Posix is silent; Open Group is silent; feature is SVR4 & 4.3+BSD Martin Gasbichler (22 May 2001 15:28 UTC)

Re: Posix is silent; Open Group is silent; feature is SVR4 & 4.3+BSD Martin Gasbichler 22 May 2001 15:28 UTC

>>>>> "Marc" == Marc Feeley <xxxxxx@IRO.UMontreal.CA> 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