From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11470 invoked from network); 20 Jan 2000 04:35:47 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 20 Jan 2000 04:35:47 -0000 Received: (qmail 6299 invoked by alias); 20 Jan 2000 04:34:40 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9380 Received: (qmail 6276 invoked from network); 20 Jan 2000 04:34:38 -0000 To: zsh-workers@sunsite.auc.dk Subject: Re: completion after ../ References: <200001191618.RAA15845@beta.informatik.hu-berlin.de> MIME-Version: 1.0 (generated by AKEMI 1.13.2 - =?ISO-2022-JP?B?Ig==?= =?ISO-2022-JP?B?GyRCQTA0Y0s8GyhCIg==?=) Content-Type: text/plain; charset=US-ASCII From: Tanaka Akira Date: 20 Jan 2000 13:34:32 +0900 Message-ID: User-Agent: Chao-gnus/6.12.5 AKEMI/1.13.2 (=?ISO-2022-JP?B?GyRCQTAbKEI=?= =?ISO-2022-JP?B?GyRCNGNLPBsoQg==?=) FLAM-DOODLE/1.12.6 (=?ISO-2022-JP?B?GyRCM3cbKEI=?= 10R4.0/5.0) Emacs/20.4 (sparc-sun-solaris2.6) MULE/4.0 (HANANOEN) In article , Tanaka Akira writes: > Hm. In general, I don't want to complete a directory which is already > described in the word, with first at least. Most frequently > happened example is X/../Z where X/../Z is X. I rethought the problem and I found another idea to describe it: A directory which shouldn't complete with first is the directory which go back path. Of course, this is subset of previous idea but it's enough for me. The directory X/Y/Z is a such directory iff [[ X -ef X/Y/Z ]] where Y and Z contains no `/'. Note that if there is no symlinks and in completion context, this happens only when Y == `..'. -- Tanaka Akira