commit abcd9cb28bb16ab29a787462996626b1e72cee4c
parent 97447549b3d702a6fe5f527a9fdf2968f31c9a92
Author: torter <koubbamohamedrayan@gmail.com>
Date: Mon, 16 Nov 2026 22:16:08 +0000
mag: :Q keeps the variables of mag's own values, cmake is built like the rest
Diffstat:
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/mag.c b/mag.c
@@ -446,7 +446,7 @@ static char *apply_mod(const struct vars *vs, char *val, const char *mod, size_t
*o = 0;
} else if (!strcmp(m, "Q")) {
const char *p;
- for (p = copy; *p; p++) { if (strchr(" \t\n'\"\\$`&|;<>()*?[]#~!", *p)) *o++ = '\\'; *o++ = *p; }
+ for (p = copy; *p; p++) { if (strchr(" \t\n'\"\\$`&|;<>()*?[]#~!", *p) && !(*p == '$' && (isupper((unsigned char)p[1]) || p[1] == '{'))) *o++ = '\\'; *o++ = *p; }
*o = 0;
} else if (!strcmp(m, "tl") || !strcmp(m, "tu")) {
int up = m[1] == 'u';
diff --git a/repo/PROVIDES b/repo/PROVIDES
@@ -34,7 +34,6 @@ textproc/libxslt -
needs x11/libX11 devel/xorg-util-macros
needs x11/libXinerama devel/xorg-util-macros
math/nickle -
-devel/cmake -
misc/pciids sys-apps/pciids
textproc/py-docutils -
lang/mawk lang/nawk