Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!usc!zaphod.mps.ohio-state.edu!magnus.ircc.ohio-state.edu!bobd From: bobd@magnus.ircc.ohio-state.edu (Bob DeBula) Newsgroups: comp.lang.perl Subject: exec environment variables Keywords: perl environ exec Message-ID: <1991Jan10.174034.21512@magnus.ircc.ohio-state.edu> Date: 10 Jan 91 17:40:34 GMT Sender: news@magnus.ircc.ohio-state.edu Organization: The Ohio State University Lines: 7 Nntp-Posting-Host: left.magnus.ircc.ohio-state.edu I am trying to write a very simplistic shell in PERL which mainly exists to restrict the user to just one program. What I need to know is how to pass a fake environment variable (remember this PERL program is the shell) on to the program I am calling so that the editor (VI) will believe that $TERM is set to vt100. Is this a brain dead idea to begin with? Does anyone have or can provide an example? Thanks in advance.