bug-bash
[Top][All Lists]
Advanced

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

Re: tab completion error with backslash and colon


From: Chet Ramey
Subject: Re: tab completion error with backslash and colon
Date: Mon, 27 Jan 2003 10:16:22 -0500

> Bash Version: 2.05b
> Patch Level: 0
> Release Status: release
> 
> Description:
> 
> In my directory I noticed a file (that I couldn't account for) called 
> 'c:\trace_b.txt'
> without quotes of course. I wanted to delete this file. So I typed:
> 
> $ rm c<TAB>
> 
> which brought up the list of items in the dir beginning with 'c'. No 
> surprises yet. 
> So then I append ':<TAB>' to the previous command to complete the file I 
> wished to
> delete:
> 
> $ rm c<TAB>:<TAB>

The colon is special to the bash/readline completion code.  It's a word
separator.  Quote it with a backslash if you want to remove its special
meaning.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )

Chet Ramey, ITS, CWRU    chet@po.CWRU.Edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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