1 --- less-374/filename.c~ Wed Mar 6 14:54:12 2002
2 +++ less-374/filename.c Wed Mar 6 14:56:58 2002
10 - shell = lgetenv("SHELL");
11 - if (shell != NULL && *shell != '\0')
17 - * Read the output of <$SHELL -c cmd>.
18 - * Escape any metacharacters in the command.
20 - esccmd = shell_quote(cmd);
23 - fd = popen(cmd, "r");
26 - scmd = (char *) ecalloc(strlen(shell) + strlen(esccmd) + 5,
28 - sprintf(scmd, "%s %s %s", shell, shell_coption(), esccmd);
30 - fd = popen(scmd, "r");
36 - fd = popen(cmd, "r");
38 + fd = popen(cmd, "r");
40 * Redirection in `popen' might have messed with the
41 * standard devices. Restore binary input mode.