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

[PATCH] The substitution flags (v!) are forbidden, also forbid (!v)



The substitution flags (v!) are forbidden, also forbid (!v)

Philippe

diff --git a/Src/subst.c b/Src/subst.c
index eef713a8c..dacee921d 100644
--- a/Src/subst.c
+++ b/Src/subst.c
@@ -2394,7 +2394,7 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int pf_flags,
 		    hkeys = SCANPM_WANTKEYS;
 		    break;
 		case 'v':
-		    if (hvals & ~SCANPM_WANTVALS)
+		    if (hkeys & ~SCANPM_WANTKEYS)
 			goto flagerr;
 		    hvals = SCANPM_WANTVALS;
 		    break;


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