help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug lookalike report : wont complete filename


From: alex xmb sw ratchev
Subject: Re: bug lookalike report : wont complete filename
Date: Wed, 28 Aug 2024 15:40:55 +0200

On Wed, Aug 28, 2024, 3:30 PM Chet Ramey <chet.ramey@case.edu> wrote:

> On 8/28/24 5:59 AM, alex xmb sw ratchev wrote:
> > i got a command that creates a file , it printf's it
> > then cause termux android cant copy thru newlines well , i copied the
> > bigger part ,
> > and paste and tab it
> >
> > i pasted , but tab wont do anything
> >
> > neither
> >
> > o.ai.2024-08-28+11:26:40.574129+0200.3805032800.llama2-un<tab>
> >
> > nor
> >
> > o.ai.2024-08-28+11:26:40.574129+0200.3805032800.llama2-un*<tab>
>
> This is from the (dormant) Bash FAQ:
>
> E13) Why does filename completion misbehave if a colon appears in the
> filename?
>
> Filename completion (and word completion in general) may appear to behave
> improperly if there is a colon in the word to be completed.
>
> The colon is special to readline's word completion code:  it is one of the
> characters that breaks words for the completer.  Readline uses these
> characters
> in sort of the same way that bash uses $IFS: they break or separate the
> words
> the completion code hands to the application-specific or default word
> completion functions.  The original intent was to make it easy to edit
> colon-separated lists (such as $PATH in bash) in various applications using
> readline for input.
>
> This is complicated by the fact that some versions of the popular
> `bash-completion' programmable completion package have problems with the
> default completion behavior in the presence of colons.
>
> The current set of completion word break characters is available in bash as
> the value of the COMP_WORDBREAKS variable.  Removing `:' from that value is
> enough to make the colon not special to completion:
>
> COMP_WORDBREAKS=${COMP_WORDBREAKS//:}
>
> You can also quote the colon with a backslash to achieve the same result
> temporarily.
>

i see , thank you for ur good texting ..

-- 
> ``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/
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]