--- less-374/filename.c~ Wed Mar 6 14:54:12 2002 +++ less-374/filename.c Wed Mar 6 14:56:58 2002 @@ -550,37 +550,7 @@ { FILE *fd; -#if HAVE_SHELL - char *shell; - - shell = lgetenv("SHELL"); - if (shell != NULL && *shell != '\0') - { - char *scmd; - char *esccmd; - - /* - * Read the output of <$SHELL -c cmd>. - * Escape any metacharacters in the command. - */ - esccmd = shell_quote(cmd); - if (esccmd == NULL) - { - fd = popen(cmd, "r"); - } else - { - scmd = (char *) ecalloc(strlen(shell) + strlen(esccmd) + 5, - sizeof(char)); - sprintf(scmd, "%s %s %s", shell, shell_coption(), esccmd); - free(esccmd); - fd = popen(scmd, "r"); - free(scmd); - } - } else -#endif - { - fd = popen(cmd, "r"); - } + fd = popen(cmd, "r"); /* * Redirection in `popen' might have messed with the * standard devices. Restore binary input mode.