zsh-users
 help / color / mirror / code / Atom feed
From: opk101@cs.york.ac.uk (Oliver Kiddle)
To: zsh-users@math.gatech.edu
Subject: Unidentified subject!
Date: Sun, 1 Feb 1998 14:50:40 +0000	[thread overview]
Message-ID: <swordfish.886345217@student.cs.york.ac.uk> (raw)

>From opk101 Sun Feb  1 14:37:39 1998
From: opk101@cs.york.ac.uk (Oliver Kiddle)
Date: Sun, 1 Feb 1998 14:37:39 +0000
In-Reply-To: borsenkow.msk@sni.de
       "Re: Completion on cd" (Feb  1, 12:53pm)
To: zsh-users@math.gatech.edu
Subject: Re: Completion on cd

On Feb 1, 12:53pm, borsenkow.msk@sni.de wrote:

> On Fri, 30 Jan 1998, Oliver Kiddle wrote:
> > % cd .netscape/[tab]
> >  -- All the *files* and directories in .netscape/ (not starting ".") are
> >  -- listed! I'd have expected it to complete to "cd .netscape/plugins/"

> I cannot reproduce it. compctl -/ cd correctly lists only directories,
> with or without . May be, it depends on some options settings; try zsh -f.

I ran zsh -f, put the cd compctl in and found the problem did not exist. 
I then added everything in my setup files a block at a time, checking
for the problem after each block so that I could try to determine where
the problem was being introduced.

I tracked the problem down to this line:

compctl -Tx 'C[0,*/*]' -f - 's[~]' -k users -S/ \
        - 'c[-1,-display]' -k hostnames -S':0 '

My first thought was that I had done something stupid when writing this
compctl but the troublesome part of it (the first line) was taken
directly from the Z Shell Guide (Edition 2.1.10, Chapter 18, Page 89 or
Edition 3.1.1, Chapter 19, Page 95)

There are a few thousand users at the university so I want this
completion to I attempted to find a better solution. My solution was
the following:

compctl -Tx 's[~] C[0,[^/]#]' -k users -S/

There may well be a problem with this though it seems to work and I
can't see any nasty suprises but I would strongly suggest that the
manual is changed so that nobody else has this problem. 

Note that the problem with cd ..[tab] beeping as opposed to completing
to cd ../ is still there.

Oliver Kiddle

PS Ignore my comment about the patch for the -Y option in my last
e-mail: when testing it I had forgotten that I was still running zsh
3.0.1 from an earlier test.


-- 
 __
/  \|.   _ _  |_/. _| _|| _     E-mail: opk101@cs.york.ac.uk
\__/||\/(-|   | \|(_|(_||(-        Web: http://www.york.ac.uk/~opk101/


             reply	other threads:[~1998-02-01 15:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-02-01 14:50 Oliver Kiddle [this message]
  -- strict thread matches above, loose matches on Subject: below --
1998-10-22 21:59 Je suis une creature de la Nuit
1997-10-11  7:05 Quinn Dunkan
     [not found] <9702170618.AA16311@tallowcross.uni-frankfurt.de>
     [not found] ` <199702170617.BAA11100@euclid.skiles.gatech.edu>
1997-02-17  7:48   ` Uli Zappe
1997-02-17 18:04     ` Zefram
1995-11-22 21:48 compdsgn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=swordfish.886345217@student.cs.york.ac.uk \
    --to=opk101@cs.york.ac.uk \
    --cc=zsh-users@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).