[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Feature Request: Allow compgen to store results on a variable
From: |
konsolebox |
Subject: |
Re: Feature Request: Allow compgen to store results on a variable |
Date: |
Sat, 2 Sep 2023 23:38:03 +0800 |
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 Thread] |
Current Thread |
[Next in Thread] |
- Re: Feature Request: Allow compgen to store results on a variable,
konsolebox <=