Path: utzoo!attcan!uunet!aplcen!samsung!sdd.hp.com!elroy.jpl.nasa.gov!jpl-devvax!lwall From: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Newsgroups: comp.lang.perl Subject: Re: Starting editor from within perl script Message-ID: <9634@jpl-devvax.JPL.NASA.GOV> Date: 24 Sep 90 18:49:27 GMT References: <1990Sep21.190641.9221@cs.rochester.edu> <1990Sep22.144126.21099@NCoast.ORG> Reply-To: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 19 In article <1990Sep22.144126.21099@NCoast.ORG> allbery@ncoast.ORG (Brandon S. Allbery KB8JRR/KT) writes: : system '/usr/ucb/vi', "/tmp/postnews$$"; : : (Splitting it up like that means that the overhead of a shell is unnecessary, : but you *must* use a full pathname for the editor. Use a single string if you : can't guarantee the existence of a full pathname.) Not so, unless your execvp(3) is broken. Just tried system 'vi', '/tmp/foo'; and it worked fine. Incidentally, system "vi /tmp/postnews$$" doesn't invoke the shell either, since there are no shell metacharacters after double quote interpretation. Larry