bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Regexp string in := parameter expansion triggers failglob


From: Andreas Schwab
Subject: Re: Regexp string in := parameter expansion triggers failglob
Date: Tue, 08 Jan 2019 16:38:58 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.91 (gnu/linux)

On Jan 08 2019, address@hidden wrote:

> Description:
>       When sourcing a script that contains a variable which performs
>       a := parameter expansion with a regular expression while failglob

At this point it is just a random string, not a regular expression, and
the fact that := is used is irrelevant.

>       shell option is enabled, bash-5.0 emits a "no match: <regexp>" 

At this point it is a glob pattern, not a regexp.

>       echo ${TESTPATTERN}

If you don't want filename expansion, use quotes.

Andreas.

-- 
Andreas Schwab, SUSE Labs, address@hidden
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]