Path: utzoo!attcan!uunet!cs.utexas.edu!yale!quasi-eli!cs.yale.edu!yarvin-norman From: yarvin-norman@CS.YALE.EDU (Norman Yarvin) Newsgroups: comp.sys.att Subject: Re: problem with using system(3S) on 3b1 v3.51 Summary: Stop whacking *envp Message-ID: <25619@cs.yale.edu> Date: 22 Jul 90 18:13:54 GMT References: <203@geocub.greco-prog.fr> Sender: news@cs.yale.edu Reply-To: yarvin-norman@CS.YALE.EDU (Norman Yarvin) Organization: Yale University Computer Science Dept, New Haven CT 06520-2158 Lines: 10 In article <203@geocub.greco-prog.fr> lath@geocub.greco-prog.fr (Laurent Lathieyre) writes: >kw: is not an identifier That message came from sh. Sh parses its envp, and if it doesn't like the variable names, it complains and dies. The fix is to stop munging *envp. On the Unix PC, *envp is located right after *argv, for ease of munging. -- Norman Yarvin yarvin-norman@cs.yale.edu