Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: SH_FILE_EXPANSION broken with process substitution



> On 23 June 2020 at 22:23 Oliver Kiddle <okiddle@xxxxxxxxxxx> wrote:
> Following on from the gpg completion breakage, it seems this option has
> been broken when used in combination with EQUALS.
> 
> This got broken in 35a8612 (workers/26042), released in 4.3.10:
>   zsh -df --shfileexpansion -c ': =(echo hi)'

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;



Messages sorted by: Reverse Date, Date, Thread, Author