From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-workers-return-43598-ml=inbox.vuxu.org@zsh.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 4ec80b77 for ; Thu, 4 Oct 2018 16:39:53 +0000 (UTC) Received: (qmail 18681 invoked by alias); 4 Oct 2018 16:39:42 -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: List-Unsubscribe: X-Seq: 43598 Received: (qmail 29029 invoked by uid 1010); 4 Oct 2018 16:39:42 -0000 X-Qmail-Scanner-Diagnostics: from smtpq2.tb.ukmail.iss.as9143.net 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(212.54.57.97):SA:0(-2.6/5.0):. Processed in 4.3795 secs); 04 Oct 2018 16:39:42 -0000 X-Envelope-From: p.w.stephenson@ntlworld.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-Env-Mailfrom: p.w.stephenson@ntlworld.com X-Env-Rcptto: zsh-workers@zsh.org X-SourceIP: 172.25.160.141 X-CNFS-Analysis: v=2.3 cv=ZtI81OzG c=1 sm=1 tr=0 a=f70ZRucvQZHi2l2hbwz5vQ==:117 a=VhSAxaxaeyEA:10 a=IkcTkHD0fZMA:10 a=x7bEGLp0ZPQA:10 a=HegVXZIhm-oA:10 a=pGLkceISAAAA:8 a=Q62rsRpbqjQOktvhlt4A:9 a=QEXdDO2ut3YA:10 X-Authenticated-Sender: p.w.stephenson@ntlworld.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntlworld.com; s=meg.feb2017; t=1538669396; bh=fRVSsa3sxXaXPcBHVdSYnXB+gTAILfr+X9SZ/WwAZEY=; h=Date:From:To:In-Reply-To:References:Subject; b=OvHyjvge2W6qqN5BU5dLuCmkwdXCmf3dzeq5xXU8SAdv82haVY/e53m3hOJIpu05B lAgCzUlKHtne40mvLE3e4bRclILGxRxIARVN0deHZUCZQfrCDjO1yLq+kqnRWmtGW2 9O5hJWZHYcCpvVVt5DAYPglodFWhZyK1yXnwWfFiprZegSCLwO4+nEVRycfbIjiChV LkHCXKX4XnyBCHjWrkpPm87P5gf6ivymL6ptTS6VXV3myKPrYxKlmiNNZq+J4q1N1g A9peYmrGm1ZWvoMobCXYESm/0A8qZhQrwz0ji5ujYI5LmSUOtDzzXO/IeSbDadWpOZ W0JFDrBfVBKKQ== Date: Thu, 4 Oct 2018 17:09:56 +0100 (BST) From: Peter Stephenson To: =?UTF-8?Q?Cl=C3=A9ment_BARRET?= , zsh-workers@zsh.org Message-ID: <689506815.116068.1538669396240@mail2.virginmedia.com> In-Reply-To: References: Subject: Re: [ BUG ] Parameter expansion issue on a defined as an empty string variable, using the "NO UNSET" flag. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.8.3-Rev48 X-Originating-IP: 213.86.214.118 X-Originating-Client: open-xchange-appsuite X-CMAE-Envelope: MS4wfFDcDlLcuWniPBu8xugmvppD6qycINT4l5/BUSaxucpBIrW7NAVcY31qm1Z3ddKYNUl0feTW6B1EGk2E0LgderjZbL2j6qxBPEK9ezj/m5CVjpWdry68 W8m9VSo73SDA2LvlMm7smKjQMhSl6xxGSJ0BaGOklu7JN09mbJm6un9fDMKu0PA8KFUN4iTLXL5PB+d7YasCPBVi96PzMlDySHVaCbxHFcaKtHNjr8oMKNsA > On 04 October 2018 at 16:44 Cl=C3=A9ment BARRET wro= te: > It appears there is a mix related to the colon use (which forces "set and > not empty strings") and the special ":#" expansion type when using the "s= et > -u" flag. >=20 > Let's consider this example : >=20 > #!/bin/zsh > set -u; >=20 > typeset youpi=3D""; > echo "youpi 5 ${youpi:#*.cfg}"; So you're getting a "parameter not set here", which is wrong. Which version of zsh are you using and does this happen from "zsh -f"? I haven't managed to get this to happen. pws