Email list hosting service & mailing list manager


Re: Posix is silent; Open Group is silent; feature is SVR4 & 4.3+BSD Bengt Kleberg 22 May 2001 12:34 UTC

> From xxxxxx@IRO.UMontreal.CA Tue May 22 14:10:54 2001
...deleted
> Rather than speculate about all the possible differences (/usr/bin/env
> vs. /bin/env, 32 character limit, space vs. no space), how about
> trying it out on a bunch of Unix implementations and reporting the
> results?
...deleted

Results included below.

> For this purpose I have written the script attached below.  Just put
> it in the file "testscript", type "source testscript" on the Unix
...deleted

Just a minor detail, but 'source' only works in csh (and derivates,
presumably including bash). 'Normal' shells (sh, ksh and rc :-), use
'.' instead. As in '. testscript'.

The results:

testscript 1.0
SunOS avc280 5.7 Generic_106541-15 sun4u sparc SUNW,Ultra-5_10
Tue May 22 14:24:06 MET DST 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