Article View: comp.unix.shell
Article #1781Re: bourne sh, problems with var setting in case/esac
From: news
Date: Thu, 15 Nov 1990 15:56
Date: Thu, 15 Nov 1990 15:56
18 lines
1069 bytes
1069 bytes
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.
Technical Details
Message-ID:
<1990Nov15.155604.16714@usenet.ins.cwru.edu>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!wuarchive!ukma!usenet.ins.cwru.edu!newsReferences:
<1236@netmuc.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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