X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; q=dns; s=
	default; b=SmacvUW3EuYYoeDWijF/pydVfknQ4ofqDaIuMNd1xRBYYwP6koWyo
	2v3E/IehDuNtzRtXEEt3Oxqpjobv94n+T2eO/tOa/DCGZ4OHTgg6Sz+j149nZJfY
	fS/LtJiZaVZYNea9QIXGH7H5PdD7HJ5HxNjihBa6PC7OcKSxMQUWu4=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; s=default;
	 bh=VcUbmTnu+3N/+B/7v2zVyjxTNuc=; b=opQWiImTMN85+F0B21h7J8Zpp+0q
	fVcc7i3Komug3X19Se0X0DuTl3w27oGhLhYPe4HssiL7MeaTi39Q4KF+oQUUscwN
	YxPS9ga2YXmdPaDnwvEwjCE6buQMXZ8KL87wavrVBetHqupLNiwhJ25WyI4jyNVn
	60aPNjDlssi3QaQ=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-4.1 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2
X-HELO: calimero.vinschen.de
Date: Sun, 5 Jul 2015 16:06:14 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: latest tcsh build has problems completing ln -s
Message-ID: <20150705140614.GF2918@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <loom.20150702T214153-878@post.gmane.org> <20150703103928.GY2918@calimero.vinschen.de>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;	protocol="application/pgp-signature"; boundary="ZsW/usBbx2ObC9TW"
Content-Disposition: inline
In-Reply-To: <20150703103928.GY2918@calimero.vinschen.de>
User-Agent: Mutt/1.5.23 (2014-03-12)

--ZsW/usBbx2ObC9TW
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Jul  3 12:39, Corinna Vinschen wrote:
> On Jul  2 19:56, Lester Ingber wrote:
> > Since the newest tcsh build on Cygwin (i'm using cygwin64),
> > version tcsh 6.19.00 (Astron) 2015-05-21 (x86_64-unknown-cygwin) option=
s=20
> > wide,nls,dl,al,kan,sm,rh,color
> > the completion of files using TAB does not work anymore.
> > It works fine under bash.
> >=20
> > I've inserted [TAB] where I have pressed Tab.
> > On tcsh I just get "<link_name> as a response.=20=20
> > The problem only occurs with trying soft links "ln -s" not hard links "=
ln".
> >=20
> > 12:34:48pm ingber@lesterX1:~% touch tp1
> > 12:35:00pm ingber@lesterX1:~% ln -s ./t [TAB]
> > <link_name>
> > 12:35:00pm ingber@lesterX1:~% ln -s ./tp1 tp2
> > 12:35:15pm ingber@lesterX1:~% ls -l
> > -rw-r--r-- 1 ingber Users 0 Jul  2 12:35 tp1
> > lrwxrwxrwx 1 ingber Users 5 Jul  2 12:35 tp2 -> ./tp1
> > 12:38:09pm ingber@lesterX1:~% bash
> > [12:38:13 ingber@lesterX1 ~]$ touch tp3
> > [12:38:23 ingber@lesterX1 ~]$ ln -s ./tp [TAB]
> > tp1  tp2  tp3
> > [12:38:23 ingber@lesterX1 ~]$ ln -s ./tp3 tp4
> > [12:39:22 ingber@lesterX1 ~]$ ls -l
> > -rw-r--r-- 1 ingber Users   0 Jul  2 12:35 tp1
> > lrwxrwxrwx 1 ingber Users   5 Jul  2 12:35 tp2 -> ./tp1
> > -rw-r--r-- 1 ingber Users   0 Jul  2 12:38 tp3
> > lrwxrwxrwx 1 ingber Users   5 Jul  2 12:38 tp4 -> ./tp3
> >=20
> > I've compiled the new tcsh on several linux platforms,
> > and this problem does not occur.
>=20
> Yes, it does.  I just tested it on Linux and the same problem occurs.
> It depends on whether you use the default completions from
> /etc/profile.d/complete.tcsh or not.  Usually I don't (setting
> `uncomplete *' in my .cshrc), neither on Cygwin nor on Linux.
>=20
> So, yes, if I use the `ln' completion from /etc/profile.d/complete.tcsh,
> I can reproduce this problem on Linux and Cygwin with tcsh-6.19,
> while it works as expected on tcsh-6.18.
>=20
> Looks like an upstream bug to me.  I'll report it to the maintainer.

The reply:

  "Yes, 'next' completions don't do partial word matches anymore, and the
   completion for ln is incorrect. I just committed a fix."

Just apply the following patch to /etc/profile.d/complete.tcsh:

@@ -1009,7 +1009,7 @@ complete ln		c/--/"(backup directory force no-derefer=
ence \
 		    c/-/"(b d F f i n S s V v -)"/ \
 		    n/{-S,--suffix}/x:'<suffix>'/ \
 		    n/{-V,--version-control}/"(t numbered nil existing \
-		    never simple)"/ n/-/f/ N/-/x:'<link_name>'/ \
+		    never simple)"/ n/-*/f/ N/-*/x:'<link_name>'/ \
 		    p/1/f/ p/2/x:'<link_name>'/
 complete touch	c/--/"(date reference time help version)"/ \
 		    c/-/"(a c d f m r t -)"/ \


HTH,
Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--ZsW/usBbx2ObC9TW
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJVmTnWAAoJEPU2Bp2uRE+g4qEP+gJBX9GDNLfJr6FoJntlmCWP
4hiUaEy+bylmhxsL3vqNE8G/bLTr3fxX9UH6lpvnPq0eGvSRvLr+R/GQjhfEwQj+
KTVjCw+75Tu5fyaGuih4V7LfRBNwNxmEEPOk9jACUPwoiDoC9l+lanYZ5h/5nWjM
x1viyptKnRjIaMrUmFkQ6nboyqxE3OOgNhTT1fcjvviwMAsutk3q+uD9dmN+jkPi
WV6FrwHluCfhgyr4CqRfHg8JPdxRrbhSi6g1ZxBdUqFhXQDiDJWZX1kqlzFuwXje
G5RRx9OLKlIJKnrqnTvnlJ8zA1iA3fZoJhBd7NJEEfKCjshXzdb0Q0nXyGo4zKWK
xkV/W0rQml7SnJzpLusrtqNXhyIBKmG3qvROn9hYDRdoGIDadD2mYkHM30Qajj1K
6QscvcvNT6K0YLUl5bOcVg5Lr/qZ5FkNkRjplSIeRe1dY5ST2sqymHx53eaWzY7L
y/R1ZF4pAayanD+ETG4baxrBdxG+0pxGOdtwfB+xi7Kx3gUGvKwFuVpr7GPcDImR
lkLHHsErRFDr8Y/RWWQaAdicC0DqdpkbGuINVem8LfOCWajSkRTmsp1v5ypj37rq
S9ARDp8RSHOr+wZT+3DktAMMYfP/R0cuE/iG+k3LxFP8xDJJ/JwcEK8K6aGEjbef
XnkQQ3riURnIrDIMXimx
=2fcN
-----END PGP SIGNATURE-----

--ZsW/usBbx2ObC9TW--
