From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6522 invoked by alias); 18 Sep 2015 04:03:05 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 36552 Received: (qmail 2394 invoked from network); 18 Sep 2015 04:03:04 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type :content-transfer-encoding; bh=9TGrry+Fz2yv7uoakIG1oRDyhAc52e5pFoAkE+sM1F0=; b=ZJ1Io6kHO+R+7zCPS/FSwWuvLGCJUuiQRFShvK0BlvacLZpqX+bcCKZIBbW0scMtpS 6pEJyzdHjD8QvzuaKY5l1Qk3OtkGcRrnVuNcjeqsWojjOGdIof+Sm35O4zMC98XWY8J+ fn0xCYUEp2xVk7rqsWJtYWDKmxOwo5kry5LgKA8fqhcyYrMff8RHp04VV7PuJtIgtdYN 78x53cTyQqXlIrZDtedFR8MrEon1US6KHZXngod614adfd0QaHph+/VF/h2FHGENUV58 N2MjrakcqsmRHFMqSCLBuxXo6dSt0C8jQwTkVD638LCXKaigCQLfUHW5u+1eM497aa7L Gy1g== X-Gm-Message-State: ALoCoQk1C+PAlPpDMhUoFe8Vk49RA/Yn1ArIwRmyJwevk891DS8hWSadFKl7QXWzCUqQqXVWGVNE X-Received: by 10.202.211.10 with SMTP id k10mr2237991oig.34.1442548982366; Thu, 17 Sep 2015 21:03:02 -0700 (PDT) From: Bart Schaefer Message-Id: <150917210259.ZM12560@torch.brasslantern.com> Date: Thu, 17 Sep 2015 21:02:59 -0700 In-Reply-To: <20150918001948.GG1956@tarsus.local2> Comments: In reply to Daniel Shahaf "0x9F when printing """ (Sep 18, 12:19am) References: <20150918001948.GG1956@tarsus.local2> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: 0x9F when printing "" MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On Sep 18, 12:19am, Daniel Shahaf wrote: } } % print -r - ${(qqqq):-""} } $'\237' }=20 } That output is wrong; should be =AB$''=BB. diff --git a/Src/utils.c b/Src/utils.c index ca68eae..d5fd88c 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -5385,6 +5385,12 @@ quotestring(const char *s, char **e, int instring) u =3D s; if (instring =3D=3D QT_DOLLARS) { /* + * The only way to get Nularg here is when + * it is placeholding for the empty string? + */ + if (inull(*u)) + *u++; + /* * As we test for printability here we need to be able * to look for multibyte characters. */