Xref: utzoo comp.unix.ultrix:4728 comp.unix.questions:25895 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!mailrus!usenet.ins.cwru.edu!cwns1!chet From: chet@cwns1.CWRU.EDU (Chet Ramey) Newsgroups: comp.unix.ultrix,comp.unix.questions Subject: Re: Bug report for /bin/sh5 under ultrix 4.0 Message-ID: <1990Oct1.154503.21968@usenet.ins.cwru.edu> Date: 1 Oct 90 15:45:03 GMT References: <4052@umbc3.UMBC.EDU> Sender: news@usenet.ins.cwru.edu Reply-To: chet@po.CWRU.Edu Organization: Case Western Reserve Univ. Cleveland, Ohio, (USA) Lines: 18 In article <4052@umbc3.UMBC.EDU> rouben@math9.math.umbc.edu () writes: >The following short script produces incorrect results under ultrix 4.0: It will produce incorrect results for any system whose Bourne shell is derived from the one shipped with System V release 2. This includes at least the HP-UX /bin/sh, Ultrix /bin/sh5, and the SunOS 3.x /bin/sh. These shells keep only a single global list in which to store the positional parameters, and function invocations overwrite this global list. The System V.3 /bin/sh has this fixed. (So does bash, for that matter. :-) Chet -- Chet Ramey ``Levi Stubbs' tears run down Network Services Group his face...'' Case Western Reserve University chet@ins.CWRU.Edu