Fixed compatibility of output.
[AROS.git] / test / clib / execl.c
bloba60790c0a1c3247e0adbf986936c040fdac8a585
1 /*
2 Copyright © 2009, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Test program for the libc's execl() function.
6 Lang: English
7 */
9 #include <stdio.h>
10 #include <unistd.h>
12 int main(void)
14 char *cmd;
16 cmd = "ls";
17 printf("Trying %s\n", cmd);
18 execl(cmd, cmd, (char *)NULL);
19 perror(cmd);
21 cmd = "bin:ls";
22 printf("Trying %s\n", cmd);
23 execl(cmd, cmd, (char *)NULL);
24 perror(cmd);
26 cmd = "/bin/ls";
27 printf("Trying %s\n", cmd);
28 execl(cmd, cmd, (char *)NULL);
29 perror(cmd);
31 cmd = "C:Dir";
32 printf("Trying %s\n", cmd);
33 execl(cmd, cmd, (char *)NULL);
34 perror(cmd);
36 return 0;