|
From: | Chet Ramey |
Subject: | Re: Enable compgen even when programmable completions are not available? |
Date: | Thu, 29 Jun 2023 16:39:52 -0400 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 |
On 6/25/23 2:38 PM, Eli Schwartz wrote:
compgen is a useful builtin for inspecting information about the shell context e.g. in scripts -- a good example of this is compgen -A function or compgen -A variable. But it's not always available depending on how bash is built, which results in people lacking confidence that it can / should be used in scripts. See e.g. https://bugs.gentoo.org/909148
It's dependent on programmable completion and readline, which are features that are enabled by default. Who builds a version of bash with those turned off? What's the rationale for doing 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/
[Prev in Thread] | Current Thread | [Next in Thread] |