Path: csiph.com!3.us.feeder.erje.net!feeder.erje.net!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail From: Clark Wang Newsgroups: gnu.bash.bug Subject: Re: remove empty '' in ${var@Q} result? Date: Thu, 29 Nov 2018 10:58:19 +0800 Lines: 23 Approved: bug-bash@gnu.org Message-ID: References: <8ebc9858-b55e-d002-62a4-3d281324b9dc@case.edu> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: usenet.stanford.edu 1543460344 16842 208.118.235.17 (29 Nov 2018 02:59:04 GMT) X-Complaints-To: action@cs.stanford.edu Cc: "bash.bug list" To: Chet Ramey Envelope-to: bug-bash@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QuWOdle8zaUanBG7Y3Cp2K7RJr46vTkXX45WJkwpgbw=; b=Hd11WjipG1myor0dVCY8mw6Riyo9AwTN2Dyk1vGSvSFpJZL/YztlM/d7nyebxWpK8V 3g9A/7kb4PhrUG7KIGvw2fe3m1Ix66M2TNpdrwZNuPrtI7GByRM5Bj8JdnvdIZJxJYTD iit0e8jdY/uHkH/I+6QxmbEcPUfYDLQvR6fqKkd+XpovZD+Jrfe1Pj6oqVrLlxncj9ip GFLElo5ij6HbUO2r8htXOdLqjTM3qc6K4RYN5uaWVvvRM/2l6q+8uWU/5pj8A5B9FHuf K8NxCHj2IBZhBdTpNIhf8YCwaUf2ZSLYGuFhiyUf9JVy5OQmHZoE/wmf0Qg86jBwwPND 8TAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QuWOdle8zaUanBG7Y3Cp2K7RJr46vTkXX45WJkwpgbw=; b=Gx81TG4dVFR6WXippjoITIpVmlC6rmJQMWV6lVj2papI3EUmquHC3VVDhXGGIV3GQy VM9k1xQxnXA+Hy2dkQsr+iTl8Z0tVXZQoLDt6LStdxEwg1eIlwvJsHTzHvs0PXhA/zGj 6dmkj4Lr7XC1U5Ve9/8Rwfuu1gKc+upm1/5RQVv3e1Vjyr54rJcSLQlkrHRyAopzshTK NXkbAJMJYZ3daf+AqXm7CfB5GMvFYOY+76FzRPlIiIPhwUTaJYKStaGEki30r95lupV/ rUhMawIifr2uCRfYzaPt5hrLkZ6/w/1nIkCgm8us+yhfuSc3u1LRHS4UxBg5h1gyrJJa W5Ww== X-Gm-Message-State: AA+aEWYaGXzAl5y9Ws7vYenHhGAvU5A96OCURWe7fyHRPD1ylJ7ricB6 V9bMr0jtGVm/ll36cPvnMDyAXXsl0vcwGvoJwO8= X-Google-Smtp-Source: AFSGD/UtokTjHBOS5D5J62GNE+GIgFoeAML6SaTNNRgtjk3jW1EYgRyRj8VfJbOo9c3D9gTR/RBIgeKJUyXGMqPqxhY= X-Received: by 2002:a24:fe41:: with SMTP id w62mr115473ith.23.1543460339315; Wed, 28 Nov 2018 18:58:59 -0800 (PST) In-Reply-To: <8ebc9858-b55e-d002-62a4-3d281324b9dc@case.edu> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::133 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com gnu.bash.bug:14861 On Wed, Nov 8, 2017 at 9:46 PM Chet Ramey wrote: > On 11/7/17 11:38 PM, Clark Wang wrote: > > > I made a patch (also attached). Please see if it's ok. > > > > > > Updated by dealing with empty strings (and malloc'ing 2 more bytes) > > though I'm not sure if it's necessary since the func > > sh_quote_reusable() already handles empty strings. > > > > > > Hi Chet, do you have a look at my patch? > > I did. It's on the list of possible things for the next version. Since it's > only a cosmetic issue, it's not a high priority. > Hi Chet, Is it possible to make the change in the coming 5.0 release? -clark