From: "Clément BARRET" <rotogluon@gmail.com>
To: p.w.stephenson@ntlworld.com
Cc: zsh-workers@zsh.org
Subject: Re: [ BUG ] Parameter expansion issue on a defined as an empty string variable, using the "NO UNSET" flag.
Date: Thu, 4 Oct 2018 18:31:39 +0200 [thread overview]
Message-ID: <CAOS_D1OTJSKC6CDU41Qe_ZR3=LF0VZc+jfde6zE=NkL6tsFGYQ@mail.gmail.com> (raw)
In-Reply-To: <689506815.116068.1538669396240@mail2.virginmedia.com>
[-- Attachment #1: Type: text/plain, Size: 891 bytes --]
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@ntlworld.com>
wrote:
>
> > On 04 October 2018 at 16:44 Clément BARRET <rotogluon@gmail.com> 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
>
next prev parent reply other threads:[~2018-10-04 16:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-04 15:44 Clément BARRET
2018-10-04 16:09 ` Peter Stephenson
2018-10-04 16:31 ` Clément BARRET [this message]
2018-10-04 16:40 ` Peter Stephenson
2018-10-04 16:45 ` dana
2018-10-04 17:24 ` Clément BARRET
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAOS_D1OTJSKC6CDU41Qe_ZR3=LF0VZc+jfde6zE=NkL6tsFGYQ@mail.gmail.com' \
--to=rotogluon@gmail.com \
--cc=p.w.stephenson@ntlworld.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).