What does `works' mean here,
It means to work like "compgen -c pin", or like
_completion_loader ping; COMP_WORDS=(ping); COMP_CWORD=1;
_known_hosts; declare -p COMPREPLY
or somehow else get possible completion results.
and what are you trying to do with this patch?
I am trying to provide "pc
On 10/8/19 1:30 PM, Му��gnu.org wrote:
> Hello!
>
> I am unable to use "compgen -F" and made a patch to make it works.
What does `works' mean here, and what are you trying to do with this
patch?
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Hello!
I am unable to use "compgen -F" and made a patch to make it works.
Please, tell me how to improve it (if it is ugly).
Hope that it will be possible to use "compgen -F" in new BASH version.
My BASH version is "5.0.11(11)-release", OS "Ubuntu 18.04.3 LT
On 8/26/13 2:07 PM, Andreas Schwab wrote:
> $ bash -c 'compgen -f'
> Segmentation fault
Thanks for the report and fix.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey
$ bash -c 'compgen -f'
Segmentation fault
diff --git a/pcomplete.c b/pcomplete.c
index 6b4e033..a3327ed 100644
--- a/pcomplete.c
+++ b/pcomplete.c
@@ -744,7 +744,8 @@ pcomp_filename_completion_function (text, state)
(rl_completion_found_quote == 0). */
On 12/13/09 5:07 AM, Freddy Vulto wrote:
> `compgen -f' produces no output if the directory contains a single quote.
> I get the same result on both bash-3.2.39 and bash-4.0.35.
>
> Steps to reproduce the problem:
>
> $ mkdir a\'b
> $ touch a\&
ch file or directory
$ mkdir a\'b; touch a\'b/c
$ mkdir ab; touch ab/d
$ compgen -f a\'b/
ab/d # INcorrect
$ compgen -f a\\\'b/
a\'b/c # correct
I found on bash-3 the workaround is to double(triple?)-escape the quotes:
On Dec 13, 8:17 am, Freddy Vulto wrote:
> On 091213 05:13, DennisW wrote:
>
> > However, with quoting, these work:
>
> > compgen -f "a\'b/"
> > compgen -f 'a\"b/'
>
> > or using a variable:
>
> > dir="a\'b/
On 091213 05:13, DennisW wrote:
> However, with quoting, these work:
>
> compgen -f "a\'b/"
> compgen -f 'a\"b/'
>
> or using a variable:
>
> dir="a\'b/"; compgen -f $dir
Both do not work at my machine? Are you sure you do
On Dec 13, 4:07 am, Freddy Vulto wrote:
> `compgen -f' produces no output if the directory contains a single quote.
> I get the same result on both bash-3.2.39 and bash-4.0.35.
>
> Steps to reproduce the problem:
>
> $ mkdir a\'b
> $ touch a\&
`compgen -f' produces no output if the directory contains a single quote.
I get the same result on both bash-3.2.39 and bash-4.0.35.
Steps to reproduce the problem:
$ mkdir a\'b
$ touch a\'b/{c,d}
$ compgen -f a\'b/
$
Expected output:
a\'b/c
a
11 matches
Mail list logo