zsh-workers
 help / color / mirror / code / Atom feed
From: Jun T <takimoto-j@kba.biglobe.ne.jp>
To: zsh-workers@zsh.org
Subject: Re: [bug] $scalar[(pws[\0])1] or $scalar[(pws[á])1] doesn't work
Date: Tue, 29 Nov 2022 08:57:05 +0900	[thread overview]
Message-ID: <A3C447F0-F18E-4214-A4AC-51D9463893E1@kba.biglobe.ne.jp> (raw)
In-Reply-To: <B2C04F8A-8ACF-4167-9BC7-46C083CA6A55@kba.biglobe.ne.jp>


> 2022/11/29 0:50, Jun. T <takimoto-j@kba.biglobe.ne.jp> 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);





  reply	other threads:[~2022-11-28 23:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-13  8:14 Stephane Chazelas
2022-11-18 12:25 ` Stephane Chazelas
2022-11-28 15:50   ` Jun. T
2022-11-28 23:57     ` Jun T [this message]
2022-11-28 15:47 ` Jun. T

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=A3C447F0-F18E-4214-A4AC-51D9463893E1@kba.biglobe.ne.jp \
    --to=takimoto-j@kba.biglobe.ne.jp \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).