SCP: Add SIM_BIN_PATH environment variable as the simulator's argv[0]
This commit is contained in:
parent
35bfe17f75
commit
9134b8e5d3
1 changed files with 1 additions and 0 deletions
1
scp.c
1
scp.c
|
@ -2209,6 +2209,7 @@ if (*argv[0]) { /* sim name arg? */
|
|||
np = strrchr (nbuf, ']'); /* VMS path separator */
|
||||
if (np != NULL)
|
||||
setenv ("SIM_BIN_NAME", np+1, 1); /* Publish simulator binary name */
|
||||
setenv ("SIM_BIN_PATH", argv[0], 1);
|
||||
}
|
||||
sim_argv = argv;
|
||||
cptr = getenv("HOME");
|
||||
|
|
Loading…
Add table
Reference in a new issue