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

Bug in ${(t)param}



Apparently this has always been wrong.

diff --git a/Src/subst.c b/Src/subst.c
index b7f8338..d9c9d24 100644
--- a/Src/subst.c
+++ b/Src/subst.c
@@ -2454,7 +2454,7 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int pf_flags,
 		    val = dyncat(val, "-unique");
 		if (f & PM_HIDE)
 		    val = dyncat(val, "-hide");
-		if (f & PM_HIDE)
+		if (f & PM_HIDEVAL)
 		    val = dyncat(val, "-hideval");
 		if (f & PM_SPECIAL)
 		    val = dyncat(val, "-special");



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