Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [ BUG ] Parameter expansion issue on a defined as an empty string variable, using the "NO UNSET" flag.
- X-seq: zsh-workers 43598
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: Clément BARRET <rotogluon@xxxxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: [ BUG ] Parameter expansion issue on a defined as an empty string variable, using the "NO UNSET" flag.
- Date: Thu, 4 Oct 2018 17:09:56 +0100 (BST)
- 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==
- Importance: Medium
- In-reply-to: <CAOS_D1NhrRvFnTrbcdCHg8iGRZAtyrG0PjqB22wHHSyyCP+YYA@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAOS_D1NhrRvFnTrbcdCHg8iGRZAtyrG0PjqB22wHHSyyCP+YYA@mail.gmail.com>
> On 04 October 2018 at 16:44 Clément BARRET <rotogluon@xxxxxxxxx> wrote:
> 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 "set
> -u" flag.
>
> Let's consider this example :
>
> #!/bin/zsh
> set -u;
>
> typeset youpi="";
> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author