On Dec 13, 4:07 am, Freddy Vulto <fvu...@gmail.com> 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\'b/{c,d}
>     $ compgen -f a\'b/
>     $
>
> Expected output:
>
>     a\'b/c
>     a\'b/d
>
> Freddy Vultohttp://fvue.nl

Same behavior with a double quote.

However, with quoting, these work:

compgen -f "a\'b/"
compgen -f 'a\"b/'

or using a variable:

dir="a\'b/"; compgen -f $dir

Reply via email to