char *buf = rl_gets (prompt_string);
if (!buf) {
quit = 1;
- printf ("\n");
+ if (is_tty)
+ printf ("\n");
break;
}
fp = open_memstream (&ptr, &size);
if (fp == NULL) {
perror ("open_memstream");
- exit (1);
+ exit (EXIT_FAILURE);
}
if (h) {
char **names = calloc (len, sizeof (char *));
if (names == NULL) {
perror ("malloc");
- exit (1);
+ exit (EXIT_FAILURE);
}
int ret = -1;