Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Re; lftp completion
- X-seq: zsh-workers 13624
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Re; lftp completion
- Date: Wed, 14 Mar 2001 09:01:35 +0100 (MET)
- In-reply-to: "Bart Schaefer"'s message of Tue, 13 Mar 2001 17:32:53 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Bart Schaefer wrote:
> On Mar 13, 2:38pm, Oliver Kiddle wrote:
> } Subject: Re; lftp completion
> }
> } Bart wrote:
> }
> } > local bookmarks=$HOME/.${words[0]:t}/bookmarks
> }
> } Shouldn't the function be using $service instead of ${words[0]:t}?
>
> I went back and forth on that one. Using $service would mean that some
> other command wanted to read ncftp's (or lftp's) bookmarks file, rather
> than having its own with a similar format. I concluded that wasn't
> likely; but maybe the other way would in fact be better.
How about a compromise: check if $HOME/.${words[0]:t}/bookmarks exists
and if it doesn't, fall back on $HOME/$service/bookmarks.
Bye
Sven 'or use a style to allow overriding that' Wischnowsky
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author