From 50dc7f29131b668daaa82c02a826763e6e9a3a44 Mon Sep 17 00:00:00 2001
From: Peter Stephenson
Date: Fri, 23 Jul 2021 20:27:38 +0100
Subject: 49182: Turn off correction inside command substition.
In "A=$(PWD)" we dont't have the information to correct at the level of the
PWD subcommand, so don't try to do it as this causes a crash.
---
Src/lex.c | 1 +
1 file changed, 1 insertion(+)
(limited to 'Src/lex.c')
diff --git a/Src/lex.c b/Src/lex.c
index 37fcec3e2..ece02659e 100644
--- a/Src/lex.c
+++ b/Src/lex.c
@@ -1889,6 +1889,7 @@ exalias(void)
hwend();
if (interact && isset(SHINSTDIN) && !strin && incasepat <= 0 &&
tok == STRING && !nocorrect && !(inbufflags & INP_ALIAS) &&
+ !hist_is_in_word() &&
(isset(CORRECTALL) || (isset(CORRECT) && incmdpos)))
spckword(&tokstr, 1, incmdpos, 1);
--
cgit 1.4.1