Re: execv bug???
Re: execv bug???
- Subject: Re: execv bug???
- From: email@hidden (Peter Seebach)
- Date: Sun, 27 Jan 2008 12:00:58 -0600
In message <email@hidden>, Tommy Nordgren wri
tes:
>If you want a call that uses the PATH environment variable you should
>use execvp instead of execv
He's not trying to use PATH -- he's trying to use a non-absolute path.
>Actually, I'ts preferable to use a call that Don't use the PATH
>environment variable, and specify the absolute path
>of the executable instead.
Agreed, especially because execvp doesn't search for binaries if the
path argument contains even one slash, even if it's not at the front
of the path.
-s
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden