hi

this simple program

#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>

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 explain me why?

thnx

roman
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to