[patch 6/8] Document completion_strip_exe in bash
Eric Blake
eblake@redhat.com
Tue Nov 2 20:55:00 GMT 2010
On 11/02/2010 02:49 PM, dan.colascione@gmail.com wrote:
> Index: bash-3.2/doc/bash.1
> ===================================================================
> --- bash-3.2.orig/doc/bash.1
> +++ bash-3.2/doc/bash.1
> @@ -7991,6 +7991,11 @@ If set,
> changes its behavior to that of version 3.1 with respect to quoted
> arguments to the conditional command's =~ operator.
> .TP 8
> +.B completion_strip_exe
> +If set, whenever Bash sees a `foo.exe' while trying to complete a
> +command, it checks whether a file called `foo' is a hardlink to the
> +former and, if so, uses the short name.
> +.TP 8
Awesome! A patch, including documentation, for something that I find useful!
I can't help but wonder how much programmable completion could be taught
to strip .exe by itself, but if you don't use bash-completion, this
still makes sense (and even if you do, it is such a fundamental
operation and certainly seems more efficient to build in below the
compgen layer than making all compgen clients have to do it themselves).
I guess I really need to find time and start testing this, to push out
a new cygwin bash build.
--
Eric Blake eblake@redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20101102/68e73e5c/attachment.sig>
More information about the Cygwin
mailing list