Date: Sat, 18 Feb 2006 18:17:18 +0100 From: Divacky Roman <xdivac02@stud.fit.vutbr.cz> To: hackers@freebsd.org Subject: different behaviour on fbsd and linux Message-ID: <20060218171718.GA73133@stud.fit.vutbr.cz>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060218171718.GA73133>