Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14346
| From | Chet Ramey <chet.ramey@case.edu> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: ${parameter@A} doesn't work should no value be set |
| Date | 2018-07-15 18:19 -0400 |
| Organization | ITS, Case Western Reserve University |
| Message-ID | <mailman.3623.1531693178.1292.bug-bash@gnu.org> (permalink) |
| References | <CAGbqXBVujpdEiWPwbAqZNb3gDE+DiGOZGQVo-5uDUqVK0AFoww@mail.gmail.com> |
On 7/14/18 3:10 PM, Michal Pesa wrote:
> Bash Version: 4.4
> Patch Level: 19
> Release Status: release
>
> Description:
> Hello, I would like to report a bug or rather a feature I think should be
> implemented. The new parameter expansions ${parameter@A} and ${parameter@a}
> don't work if only attributes are set but value is not.
The ${parameter[op[word]]} expansion generally (except where explicitly
noted) expand to nothing when `parameter' is unset. I can see making an
exception for ${parameter@a}, though, since it displays only the
attributes. I'll take a look at that.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: ${parameter@A} doesn't work should no value be set Chet Ramey <chet.ramey@case.edu> - 2018-07-15 18:19 -0400
csiph-web