}
if (status == -1) {
+ VERBOSE (ERROR, fprintf (stderr, "can't exec command: %s\n", cmd));
free (buffer);
buffer = NULL;
}
}
if (status == -1) {
+ VERBOSE (ERROR, fprintf (stderr, "can't load file: %s\n", name));
free (buffer);
buffer = NULL;
}
/* test: cmore.exe -h | grep usage */
/* test: cmore.exe -c 2>&1 | grep error */
+/* test: cmore.exe -c notAnExistingCommand 2>&1 | grep can\'t */
/* test: cmore.exe -f 2>&1 | grep error */
+/* test: cmore.exe -f notAnExistingFile 2>&1 | grep can\'t */
/* test: (sleep 1; echo -n q) | cmore.exe -c 'ip addr' */
/* test: (sleep 1; echo -ne '\e\e') | cmore.exe -f tui.c */
/* test: (sleep 1; echo -n kkkkk; sleep 1; echo -n i; sleep 1; echo -n q) | cmore.exe -c 'ip addr' */