Bourne Shell Function positional parameter space

chet at po.cwru.edu chet at po.cwru.edu
Thu Nov 1 11:07:33 AEST 1990


In article <1990Oct7.223601.28031 at rice.edu> chris at manic.communica.oz (Chris Clarkson) writes:
>Under SunOS 3.X (and most Sys V and BSD Unix I have worked on) Bourne
>shell functions shared their positional paramater space with the main
>shell. Under SunOS 4.X this no longer seems to be the case.  Is this true
>or is some other mechanism at play ?

This is the result of the change from an s5r2-based /bin/sh in SunOS 3.x
to an s5r3-based /bin/sh in SunOS 4.x.  The s5r3 sh no longer has a single
global space for the positional parameters.

Chet Ramey			``As I recall, Doug was keen on boxing.  But
Network Services Group		  when he learned to walk, he took up puttin'
Case Western Reserve University	  the boot in the groin.''
chet at ins.CWRU.Edu



More information about the Comp.sys.sun mailing list