[PATCH #64] Made shell command with no arguments functional for Windows.
This commit is contained in:
parent
6d59f8a3b1
commit
72068e035c
|
|
@ -10,16 +10,22 @@
|
||||||
#include "ngspice/cpextern.h"
|
#include "ngspice/cpextern.h"
|
||||||
|
|
||||||
|
|
||||||
/* Fork a shell. */
|
#ifdef _WIN32
|
||||||
|
#define SHELL "cmd /k"
|
||||||
|
#else
|
||||||
|
#define SHELL "/bin/csh"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Fork a shell. */
|
||||||
void
|
void
|
||||||
com_shell(wordlist *wl)
|
com_shell(wordlist *wl)
|
||||||
{
|
{
|
||||||
char *com, *shell = NULL;
|
char *com, *shell = NULL;
|
||||||
|
|
||||||
shell = getenv("SHELL");
|
shell = getenv("SHELL");
|
||||||
if (shell == NULL)
|
if (shell == NULL) {
|
||||||
shell = "/bin/csh";
|
shell = SHELL;
|
||||||
|
}
|
||||||
|
|
||||||
cp_ccon(FALSE);
|
cp_ccon(FALSE);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue