diff --git a/src/iocsh/iocsh.cpp b/src/iocsh/iocsh.cpp index 158f76c00..62e352c87 100644 --- a/src/iocsh/iocsh.cpp +++ b/src/iocsh/iocsh.cpp @@ -454,6 +454,11 @@ iocsh (const char *pathname) &argBuf[arg], piocshFuncDef->arg[arg])) break; } + if((prompt != NULL) && (strcmp(argv[0], "epicsEnvSet") == 0)) { + char *newPrompt; + if ((newPrompt = getenv ("IOCSH_PS1")) != NULL) + prompt = newPrompt; + } } } if (fp && (fp != stdin))