From 84b621026e87b1fa91aa042bf9dd66fd430730ba Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Mon, 19 Dec 2022 10:25:42 -1000 Subject: [PATCH] SCP: Always define SIM_BIN_NAME even when no directory found in binary path --- scp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scp.c b/scp.c index e445518d..c2dda20b 100644 --- a/scp.c +++ b/scp.c @@ -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); }