[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: minor bash completion bug for files containing an equal sign
From: |
Paul Jarc |
Subject: |
Re: minor bash completion bug for files containing an equal sign |
Date: |
Fri, 10 Dec 2004 10:42:17 -0500 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux) |
Nico Dietrich <nicodietrich@web.de> wrote:
> $ mkdir =
> $ cd =[TAB] produces $ cd =\=/
This is because "=" is included in $COMP_WORDBREAKS. It is helpful
when completing things like this:
$ FOO=/path/to/foo BAR=/path/to/bar cmd
But readline can't tell the difference between such an assignment and
an argument (and even for an argument, this can be useful sometimes).
So you can only have one or the other; if you would rather have
completion of filenames containing "=", set COMP_WORDBREAKS to not
include "=".
paul