[prev in list] [next in list] [prev in thread] [next in thread]
List: bash-bug
Subject: Re: Feature Request: Allow compgen to store results on a variable
From: konsolebox <konsolebox () gmail ! com>
Date: 2023-09-02 15:38:03
Message-ID: CAJnmqwazBiSPcu41cgqQKG4E7ZJhCYPibPCrDkk6X98Jfc=aLg () mail ! gmail ! com
[Download RAW message or body]
On Mon, Feb 21, 2022 at 2:23 AM konsolebox <konsolebox@gmail.com> wrote:
>
> Commonly `readarray -t`, a pipe, and a subshell is used to get the
> results of compgen but this has two problems:
>
> - It uses a pipe and a subshell
> - Values having newlines will be split
>
> Those can be prevented if another option is added. E.g.:
>
> compgen -O array_var ...
Chet,
Thanks for this one too. (Implemented in 5.3 with -V)
--
konsolebox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic