Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [bug] $scalar[(pws[\0])1] or $scalar[(pws[á])1] doesn't work
> 2022/11/29 0:50, Jun. T <takimoto-j@xxxxxxxxxxxxxxxxx> wrote:
>
> Could you try the following patch?
Sorry, it brakes the error message. Does this work?
diff --git a/Src/glob.c b/Src/glob.c
index 400be12d5..490bafc37 100644
--- a/Src/glob.c
+++ b/Src/glob.c
@@ -1481,7 +1481,7 @@ zglob(LinkList list, LinkNode np, int nountok)
sav = *tt;
*tt = '\0';
- if ((pw = getpwnam(s + arglen)))
+ if ((pw = getpwnam(unmeta(s + arglen))))
data = pw->pw_uid;
else {
zerr("unknown username '%s'", s + arglen);
Messages sorted by:
Reverse Date,
Date,
Thread,
Author