[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug in auto completition, dunno if by completition package
From: |
Alex fxmbsw7 Ratchev |
Subject: |
Re: bug in auto completition, dunno if by completition package |
Date: |
Wed, 17 Mar 2021 17:45:54 +0100 |
and what about the traps to not-with-slash one ?
bash: type: traps: not found
On Wed, Mar 17, 2021 at 4:39 PM Chet Ramey <chet.ramey@case.edu> wrote:
> On 3/17/21 6:43 AM, Alex fxmbsw7 Ratchev wrote:
> > i code on a bash feature linker 'ogt2' that binds functions, aliases,
> etc,
> > by filenames and their content ( and location ( prepath \\ subpath ) )
> > now i have /root/ogt2/traps/ and being in /root/ogt2
> > i type traps<tab> i expected traps/ it autocompleted none more it shows
> > 'traps' as only option to complete but it doesnt move on or add the slash
> > i type trap<tab> i autocompletes to 'trap ' instead of also show traps/
>
> It completes because `trap' is a command name, and it appends the space
> because that's the default on a successful completion.
>
> Command completion attempts its fallback directory completion only if there
> are no command names that match.
>
>
> --
> ``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/
>