[net.unix] argc == 0

net@tub.UUCP (12/05/85)

The following typescript has been created under 4.2 BSD (have fun!):

Script started on Wed Dec  4 20:19:03 1985
% cat c.c
main (ac, av) char **av; {
    execl (av[1], (char *)0);    /* Execute file with argc == 0 */
    perror ("exec");
}
% cc c.c
%
% a.out /bin/ls
Segmentation fault (core dumped)
% a.out /usr/ucb/mail
Segmentation fault (core dumped)
% a.out /bin/csh
Bus error (core dumped)
% a.out /usr/ucb/vi
"HOME=/g/net" [New file]
:
No lines in the buffer
:q
-2 more files to edit
:q!
% 
% a.out /bin/size
size: HOME=/g/net not found
size: SHELL=/bin/csh not found
size: PATH=/etc:/usr/ucb:/bin:/usr/bin:/g/net/bin:/usr/local:.:/usr/new:/usr/games:/usr/lib:/g/net/lsp not found
size: TERM=vt100 not found
size: USER=net not found
size:  not an object file
Segmentation fault (core dumped)
% 
% ^D
script done on Wed Dec  4 20:19:08 1985

--
Oliver Laumann  net@tub.UUCP  net@DB0TUI6.BITNET