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.



> 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