/************* * com_rehash.c * $Id$ ************/ #include #include #include #include "com_rehash.h" #include "streams.h" #include "control.h" #include "parser/unixcom.h" void com_rehash(wordlist *wl) { char *s; if (!cp_dounixcom) { fprintf(cp_err, "Error: unixcom not set.\n"); return; } s = getenv("PATH"); if (s) cp_rehash(s, TRUE); else fprintf(cp_err, "Error: no PATH in environment.\n"); return; }