On Saturday 03 August 2002 04:27, Paul W. Abrahams wrote:
I'm working with an update of SuSE 6.3 to SuSE 8.0, and I've gotten a puzzling error: when I call "apropos", I get the repeated message
sh: /usr/bin/grep-iE: No such file or directory
Indeed there's no such program as "grep-iE" (no space between "p" and "-"). in the SuSE archive listing. I assume that somehow a call on "grep -iE" (space between "p" and "-") got garbled. But where and how? I've verified that my "grep" and "man" packages are the latest 8.0 ones; I've even tried reinstalling them. A debugged call on apropos shows that the error message above is appearing once for each directory in the manpath.
Turning on shell tracing with "set -x" doesn't help since it doesn't affect shell invocations from within a called binary program.
Is there some assumed initialization file that defines "grep-iE" as "grep -iE"?
Paul
No, it's a bug in the program. If it's useful, here's a diff that fixes it. --- whatis.c Sat Aug 3 04:41:27 2002 +++ whatis.c.new Sat Aug 3 04:45:30 2002 @@ -183,7 +183,7 @@ flags = get_def ("apropos_grep_flags", APROPOS_GREP_FLAGS); - command = strappend (NULL, get_def ("grep", GREP), + command = strappend (NULL, get_def ("grep", GREP), " ", flags, " '", page, "' ", whatis_file, NULL); #endif You're seeing the error because the program can't find the whatis database. A rough guess at a quick fix is that you could try running "makewhatis". //Anders