www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/11/02/16:55:51

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4CD07ACB.3050802@redhat.com>
Date: Tue, 02 Nov 2010 14:55:39 -0600
From: Eric Blake <eblake AT redhat DOT com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100827 Red Hat/3.1.3-1.el6 Mnenhy/0.8.3 Thunderbird/3.1.3
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: [patch 6/8] Document completion_strip_exe in bash
References: <20101102204855 DOT 153395100 AT gmail DOT com> <20101102205031 DOT 093395100 AT gmail DOT com>
In-Reply-To: <20101102205031.093395100@gmail.com>
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

--------------enigFEE4750624FC21C8073E10F9
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 11/02/2010 02:49 PM, dan DOT colascione AT gmail DOT com wrote:
> Index: bash-3.2/doc/bash.1
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> --- 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 =3D~ 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.

--=20
Eric Blake   eblake AT redhat DOT com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


--------------enigFEE4750624FC21C8073E10F9
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Red Hat - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJM0HrLAAoJEKeha0olJ0Nq2E0IAJmG/IyQnpWRlyZXOnXiImiz
fOzsI6HycK1/6QZN6dIBTn0Pu5xEip+8lu7b8U1erDw7sPRi3rxiz4V9YDyHfg32
QzCfl37yMXDeWH/FEbYMbJpQxa/qONu6qCb2h7N3g0jfA+WFyN+hJXiZQCCyPx6S
18CvUMOgXeGUCXm7mwMuwza3ZNQfaqYPeLz93AEyDKfVpco+zt9Fz/2VAR8RwA8/
mHO1HmC00ZuqI1mnPTuaNUOo4uvBDyVzci8A7ftO4MnmJlCci2mSiSkkWbmmlAW+
1Kyy6aCh7SncAMrgMGID5+OWOxEbR0/VosMQG/eOaeXKyf/IBoDXuCd/i9BblHU=
=z4Y8
-----END PGP SIGNATURE-----

--------------enigFEE4750624FC21C8073E10F9--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019