Re: compgen -F

2019-10-10 Thread Муравьев Александр
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

Re: compgen -F

2019-10-09 Thread Chet Ramey
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

compgen -F

2019-10-08 Thread Муравьев Александр via Bug reports for the GNU Bourne Again SHell
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

Re: Bash-4.3-beta: compgen -f

2013-08-26 Thread Chet Ramey
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-4.3-beta: compgen -f

2013-08-26 Thread Andreas Schwab
$ 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). */

Re: compgen -f failing on directory containing single quote

2009-12-13 Thread Chet Ramey
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\&

Re: compgen -f failing on directory containing single quote

2009-12-13 Thread Freddy Vulto
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:

Re: compgen -f failing on directory containing single quote

2009-12-13 Thread DennisW
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/

Re: compgen -f failing on directory containing single quote

2009-12-13 Thread Freddy Vulto
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

Re: compgen -f failing on directory containing single quote

2009-12-13 Thread DennisW
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 failing on directory containing single quote

2009-12-13 Thread Freddy Vulto
`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