"$exclude"

Karl Auer kauer at biplane.com.au
Sun May 19 00:42:17 UTC 2024


On Sat, 2024-05-18 at 11:39 -0700, MR ZenWiz wrote:
> On Sat, May 18, 2024 at 12:59 AM Loïc Grenié <loic.grenie at gmail.com>
> wrote:
> :
> >     It might be defined but empty. It's referenced by the
> > completion system,
> >   so it might get defined behind the scenes.
> > 
> 
> Interesting possibility. I also get this:
> 
> 11:35 [admar at marbase:~/Downloads] $ declare -p exclude
> bash: declare: exclude: not found
> 11:36 [admar at marbase:~/Downloads] $
> 
> So it is not a variable defined behind the scenes.
> 
> Still strange.
> 
> Thanks,
> 
> Mark
> 

It's used within the completion code (try "set | grep exclude", or "set
| less", then search in the output for "exclude"). So while it is not a
variable defined where we can see it with e.g. declare, does seem to be
defined "behind the scenes", but as a local variable. Once the
completions, er, complete, it is gone. I wonder if the completion code
is failing to exclude its own internal variables from the completion
list.

Regards, K.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au, he/him)
http://www.biplane.com.au/kauer






More information about the ubuntu-users mailing list