1
0
mirror of https://github.com/simh/simh.git synced 2026-02-27 09:09:46 +00:00

SCP: Always define SIM_BIN_NAME even when no directory found in binary path

This commit is contained in:
Mark Pizzolato
2022-12-19 10:25:42 -10:00
parent 7e78f2fce1
commit 84b621026e

2
scp.c
View File

@@ -2910,6 +2910,8 @@ 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 */
else
setenv ("SIM_BIN_NAME", nbuf, 1); /* Publish simulator binary name */
setenv ("SIM_BIN_PATH", argv[0], 1);
}