[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] Completion Items Starting With Colon Character
From: |
Ümit Kablan |
Subject: |
Re: [Help-bash] Completion Items Starting With Colon Character |
Date: |
Mon, 25 Aug 2014 10:47:52 +0300 |
Hi,
On 22 August 2014 18:29, Chet Ramey <address@hidden> wrote:
> On 8/22/14, 6:46 AM, Ümit Kablan wrote:
> > Hi,
> >
> > I have problems in completion with colon-starting items, which I thought
> > might be a bug:
> >
> >
> http://stackoverflow.com/questions/25362968/bash-command-line-tab-completion-colon-character
> >
> > Do you have any ideas about why shell yields ":" after I press tab for
> > completion?
>
> Sure. This has come up a number of times in the past.
>
> The colon breaks words for the completion system (look at the description
> of the COMP_WORDBREAKS shell variable), so when you type
>
> progname :[TAB]
>
> the completion system gets an empty word to complete. If all of the
> possible completions have `:' as the longest common prefix, then the
> completion system will insert the colon into the line.
>
>
Thank you so much for your answer! I have posted the actual solution which
was initiated with the light you shed here:
http://stackoverflow.com/a/25481191/503337. Please have a look for a
possible inaccuracy.
> Chet
> --
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
> ``Ars longa, vita brevis'' - Hippocrates
> Chet Ramey, ITS, CWRU address@hidden
> http://cnswww.cns.cwru.edu/~chet/
>
--
Ümit