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.



Hi,

as already stated at the end of my previous message, the zsh version is: zsh
5.0.2 (x86_64-redhat-linux-gnu) .

Same behavior with zsh -f indeed.

Regards,


              RotoGluOn



On Thu, 4 Oct 2018 at 18:09, Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
wrote:

>
> > 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