Feature Request: Allow compgen to store results on a variable
From:
konsolebox
Subject:
Feature Request: Allow compgen to store results on a variable
Date:
Sun, 20 Feb 2022 18:23:29 +0000
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 ...
--
konsolebox
[Prev in Thread]
Current Thread
[Next in Thread]
Feature Request: Allow compgen to store results on a variable,
konsolebox<=