Date: Mon, 23 Jun 2003 15:44:48 -0700 From: Tim Kientzle <kientzle@acm.org> To: Rajappa Iyer <rsi@panix.com> Cc: arch@freebsd.org Subject: Re: Proposal: execvP Message-ID: <3EF782E0.2050803@acm.org> References: <3EF77E52.6070007@acm.org> <200306232240.h5NMewU27649@panix1.panix.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Rajappa Iyer wrote: > Tim Kientzle <kientzle@acm.org> writes: >>In essence, execvP() is merely publishing an already-existing capability >>within the library by breaking execvp() into two very natural pieces. >>Without this, I basically will have to copy a slightly modified version >>of execvp() into several utilities, which seems a rather pointless >>exercise. > > > What's wrong with > > putenv("PATH=newpath"); > execvp(...); > > What am I missing? > > rsi Your suggested code changes the PATH that is used by child processes. Tim
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3EF782E0.2050803>