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) options 
> > wide,nls,dl,al,kan,sm,rh,color
> > the completion of files using TAB does not work anymore.
> > It works fine under bash.
> > 
> > I've inserted [TAB] where I have pressed Tab.
> > On tcsh I just get "<link_name> as a response.  
> > The problem only occurs with trying soft links "ln -s" not hard links "ln".
> > 
> > 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
> > 
> > I've compiled the new tcsh on several linux platforms,
> > and this problem does not occur.
> 
> 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.
> 
> 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.
> 
> 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-dereference \
                    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

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

Attachment: pgpYO5SX4_Q4d.pgp
Description: PGP signature

Reply via email to