Re: different behaviour on fbsd and linux

2006-02-19 Thread Erik Trulsson
On Sun, Feb 19, 2006 at 11:54:38AM +0100, Divacky Roman wrote: > On Sat, Feb 18, 2006 at 01:43:30PM -0800, John-Mark Gurney wrote: > > Divacky Roman wrote this message on Sat, Feb 18, 2006 at 18:39 +0100: > > > On Sat, Feb 18, 2006 at 06:21:52PM +0100, [EMAIL PROTECTED] wrote: > > > > On Sat, Feb 1

Re: different behaviour on fbsd and linux

2006-02-19 Thread Divacky Roman
On Sat, Feb 18, 2006 at 01:43:30PM -0800, John-Mark Gurney wrote: > Divacky Roman wrote this message on Sat, Feb 18, 2006 at 18:39 +0100: > > On Sat, Feb 18, 2006 at 06:21:52PM +0100, [EMAIL PROTECTED] wrote: > > > On Sat, Feb 18, 2006 at 06:17:18PM +0100, Divacky Roman wrote: > > > > execl("

Re: different behaviour on fbsd and linux

2006-02-18 Thread John-Mark Gurney
Divacky Roman wrote this message on Sat, Feb 18, 2006 at 18:39 +0100: > On Sat, Feb 18, 2006 at 06:21:52PM +0100, [EMAIL PROTECTED] wrote: > > On Sat, Feb 18, 2006 at 06:17:18PM +0100, Divacky Roman wrote: > > > execl("/bin/ls", NULL); > > > > This is wrong. You must specify arg0 != NULL (PO

Re: different behaviour on fbsd and linux

2006-02-18 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Stefan Farfeleder <[EMAIL PROTECTED]> writes: : On Sat, Feb 18, 2006 at 06:21:52PM +0100, [EMAIL PROTECTED] wrote: : > On Sat, Feb 18, 2006 at 06:17:18PM +0100, Divacky Roman wrote: : > > execl("/bin/ls", NULL); : > : > This is wrong. You must spec

Re: different behaviour on fbsd and linux

2006-02-18 Thread Stefan Farfeleder
On Sat, Feb 18, 2006 at 06:21:52PM +0100, [EMAIL PROTECTED] wrote: > On Sat, Feb 18, 2006 at 06:17:18PM +0100, Divacky Roman wrote: > > execl("/bin/ls", NULL); > > This is wrong. You must specify arg0 != NULL (POSIX says so) and you > must NULL-terminate the *following* list. > > E.g.: >

Re: different behaviour on fbsd and linux

2006-02-18 Thread Divacky Roman
On Sat, Feb 18, 2006 at 06:21:52PM +0100, [EMAIL PROTECTED] wrote: > On Sat, Feb 18, 2006 at 06:17:18PM +0100, Divacky Roman wrote: > > execl("/bin/ls", NULL); > > This is wrong. You must specify arg0 != NULL (POSIX says so) and you > must NULL-terminate the *following* list. > > E.g.: >

Re: different behaviour on fbsd and linux

2006-02-18 Thread joerg
On Sat, Feb 18, 2006 at 06:17:18PM +0100, Divacky Roman wrote: > execl("/bin/ls", NULL); This is wrong. You must specify arg0 != NULL (POSIX says so) and you must NULL-terminate the *following* list. E.g.: execl("/bin/ls", "/bin/ls", NULL); is what you want to do. Joerg ___

different behaviour on fbsd and linux

2006-02-18 Thread Divacky Roman
hi this simple program #include #include #include main() { pid_t pid; pid = fork(); if (pid == 0) execl("/bin/ls", NULL); } works differently on fbsd and on linux. on fbsd it basically ls each record in ENV on linux it executes ls listing all files in cwd. can someone expla