Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re; lftp completion



Bart wrote:

> Chmouel's _lftp function is very similar to _ncftp.  Here's a single
> function that handles both, without resorting to "awk -F" or "cut":

> local bookmarks=$HOME/.${words[0]:t}/bookmarks

Shouldn't the function be using $service instead of ${words[0]:t}?

> Any object to replacing _ncftp with the above and removing _lftp? (One
> possible objection might be that lftp allows commas in its bookmark
> names; I don't know whether or not that's the case.)

It seems like a reasonable thing to do to me. There is also enough
similarity that even if someone takes the time to improve the function
they can probably keep the two commands together.

Oliver



Messages sorted by: Reverse Date, Date, Thread, Author