1
0
mirror of https://github.com/open-simh/simh.git synced 2026-01-14 07:40:35 +00:00

SCP: Add SIM_BIN_PATH environment variable as the simulator's argv[0]

This commit is contained in:
Mark Pizzolato 2017-10-24 12:21:52 -07:00
parent 35bfe17f75
commit 9134b8e5d3

1
scp.c
View File

@ -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");