Path: utzoo!attcan!uunet!wuarchive!ukma!usenet.ins.cwru.edu!news From: news@usenet.ins.cwru.edu Newsgroups: comp.unix.shell Subject: Re: bourne sh, problems with var setting in case/esac Keywords: sh, case Message-ID: <1990Nov15.155604.16714@usenet.ins.cwru.edu> Date: 15 Nov 90 15:56:04 GMT References: <1236@netmuc.UUCP> Reply-To: chet@po.CWRU.Edu Distribution: comp Organization: Case Western Reserve Univ. Cleveland, Ohio, (USA) Lines: 19 Nntp-Posting-Host: thor.ins.cwru.edu In article <1236@netmuc.UUCP> bothe@net7.uucp writes: >if i don't pipe esac and not use cat, all is ok, but i want to pipe ! In the immortal words of Guy Harris (or is that the words of the immortal Guy Harris? :-): ``You've been zapped by Mr. Subshell'' Sh runs control structures with pipes in a subshell. Variables set in a subshell cannot affect the parent's settings. Chet -- Chet Ramey ``I die, Horatio'' Network Services Group, Case Western Reserve University chet@ins.CWRU.Edu My opinions are just those, and mine alone.