From 78654869942e94b77ba878a383c4e91d2978567c Mon Sep 17 00:00:00 2001
From: Peter Stephenson
Date: Fri, 26 Jun 2020 17:32:02 +0100
Subject: 46100: Fix =subst before =(subst)
This occurs with SH file expansion ordering.
Add test.
---
Src/subst.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'Src')
diff --git a/Src/subst.c b/Src/subst.c
index 90b5fc121..ed3f4a82b 100644
--- a/Src/subst.c
+++ b/Src/subst.c
@@ -796,7 +796,7 @@ filesubstr(char **namptr, int assign)
*namptr = dyncat(hom, ptr);
return 1;
}
- } else if (*str == Equals && isset(EQUALS) && str[1]) { /* =foo */
+ } else if (*str == Equals && isset(EQUALS) && str[1] && str[1] != Inpar) { /* =foo */
char *expn = equalsubstr(str+1, assign, isset(NOMATCH));
if (expn) {
*namptr = expn;
--
cgit 1.4.1