From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12774 invoked by alias); 25 Mar 2017 06:21:19 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 22611 Received: (qmail 26583 invoked from network); 25 Mar 2017 06:21:19 -0000 X-Qmail-Scanner-Diagnostics: from aok120.rev.netart.pl by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(85.128.245.120):SA:0(0.0/5.0):. Processed in 2.139359 secs); 25 Mar 2017 06:21:19 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: psprint@zdharma.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at zdharma.org does not designate permitted sender hosts) X-Virus-Scanned: by amavisd-new using ClamAV (3) Date: Sat, 25 Mar 2017 07:21:03 +0100 From: Sebastian Gniazdowski To: Peter Stephenson , zsh-users@zsh.org Message-ID: In-Reply-To: <20170324114903.5bce97c1@pwslap01u.europe.root.pri> References: <20170322095212.2ff2dec8@pwslap01u.europe.root.pri> <20170324114903.5bce97c1@pwslap01u.europe.root.pri> Subject: Re: How to substitute empty array element, or empty string X-Mailer: Airmail (231) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 24 marca 2017 at 12:50:43, Peter Stephenson (p.stephenson=40samsung.co= m) wrote:=C2=A0 > =5B=5B '' =3D * =5D=5D && echo yes >=C2=A0 > echoes =22yes=22 in bash as well as zsh, so =22*=22 can match an empty = string, > and I don't think the / and // operators are standardised. Checked that in ksh: % a=3D=22=22; echo =24=7Ba//*/x=7D x %=C2=A0a=3D( =22=22 );=C2=A0echo =24=7Ba=5B=40=5D//*/x=7D x % =5B=5B =22=22 =3D * =5D=5D && echo yes yes It can look like // behavior was bash-driven, and in bash there is the om= ission for =22=22. --=C2=A0 Sebastian Gniazdowski psprint =5Bat=5D zdharma.org