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.ra...@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 c...@case.edu http://tiswww.cwru.edu/~chet/ >