From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17002 invoked from network); 29 May 1999 10:30:32 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 29 May 1999 10:30:32 -0000 Received: (qmail 18464 invoked by alias); 29 May 1999 10:30:06 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6369 Received: (qmail 18440 invoked from network); 29 May 1999 10:30:05 -0000 From: "Bart Schaefer" Message-Id: <990529103000.ZM7564@candle.brasslantern.com> Date: Sat, 29 May 1999 10:30:00 +0000 In-Reply-To: <000201bea852$585d80a0$21c9ca95@mow.siemens.ru> Comments: In reply to "Andrej Borsenkow" "pws-19: compinstall should build absolute paths" (May 27, 7:05pm) References: <000201bea852$585d80a0$21c9ca95@mow.siemens.ru> X-Mailer: Z-Mail (5.0.0 30July97) To: "ZSH workers mailing list" Subject: PATCH: Re: pws-19: compinstall should build absolute paths MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On May 27, 7:05pm, Andrej Borsenkow wrote: } Subject: pws-19: compinstall should build absolute paths } } source .zsh.d/compinstall } } that resulted in relative paths placed in .zshrc: } } . .zsh.d/compinit -f .zsh.d -d I'm not entirely certain that using absolute paths is the best thing here; I worry about things like NFS filesystems that don't have the same mount points everywhere. But I can't think of anything better. Index: Completion/Core/compinstall =================================================================== @@ -141,6 +141,9 @@ else print "Keeping existing completion directiory $_ci_fdir" fi +if [[ ${~_ci_fdir} != /* ]]; then + _ci_fdir=$(cd $_ci_fdir;builtin pwd) +fi # Check if this is in fpath already, else put it there (with ~'s expanded). _ci_f=${~_ci_fdir} -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com