- if (l_bang_flag == 1) { /* user wants the name from a sh command */
- FILE *namestream, *popen();
-
- if (l_fname[0] == '\0') {
- strcpy(help_msg, "no command given");
- *errnum = -1;
- return (NULL);
- }
- if (((namestream = popen(l_fname, "r")) == NULL) ||
- ((fgets(l_fname, FILENAME_LEN - 1, namestream)) == NULL)) {
- strcpy(help_msg, "error executing command");
- *errnum = -1;
- if (namestream != NULL)
- pclose(namestream);
- ungetc('\n', inputt);
- return (NULL);
- }
- l_len = strlen(l_fname) - 1;
- if (l_fname[l_len] == '\n')
- l_fname[l_len] = '\0';
- pclose(namestream);
- } else
- if (l_fname[0] == '\0') {
- sigspecial++;
- strcpy(l_fname, filename_current);
- sigspecial--;
- if (sigint_flag && (!sigspecial))
- SIGINT_ACTION;
- }
+ if (l_fname[0] == '\0') {
+ sigspecial++;
+ strcpy(l_fname, filename_current);
+ sigspecial--;
+ if (sigint_flag && (!sigspecial))
+ SIGINT_ACTION;
+ }