You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
477 B
29 lines
477 B
/*************
|
|
* com_rehash.c
|
|
* $Id$
|
|
************/
|
|
|
|
#include <config.h>
|
|
#include <ngspice.h>
|
|
|
|
#include <wordlist.h>
|
|
#include "com_rehash.h"
|
|
#include "streams.h"
|
|
#include "control.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;
|
|
}
|