Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: more wishes with automounter
- X-seq: zsh-users 3424
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Alexandre Duret-Lutz <duret_g@xxxxxxxxxxxxx>, zsh-users@xxxxxxxxxxxxxx
- Subject: Re: more wishes with automounter
- Date: Wed, 13 Sep 2000 15:02:38 +0000
- In-reply-to: <mvbu2bkd4cd.fsf@xxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <200009111436.KAA02215@xxxxxxxxxxxxxxxxxxxx> <mvb66o27s0g.fsf@xxxxxxxxxxxxxxxxxxxx> <1000912065847.ZM5756@xxxxxxxxxxxxxxxxxxxxxxx> <mvbu2bkd4cd.fsf@xxxxxxxxxxxxxxxxxxxx>
On Sep 13, 11:32am, Alexandre Duret-Lutz wrote:
} Subject: Re: more wishes with automounter
}
} zstyle -e ':completion:*' file-patterns \
} '[[ $PREFIX == /nfs/[^/]# ]] && \
} { setopt noglob ; reply=(*(@,/)) ; setopt glob }'
}
} Leads to:
}
} ~ % ls /nfs/<TAB>
} _path_files:327: bad pattern: /nfs/*(@
This is because _files splits the file-patterns at commas on line 58. I'm
not sure why, or how to fix it. It might be to replace
pat="${${${sdef%%:${tag}*}//\\:/:}//,/ }"
with
pat="${${${sdef%%:${tag//,/ }*}//\\:/:}}"
but I fear that only Sven knows for sure. In any case, a qualifier with
a comma in it would interact badly with the file-sort tag, because it will
be rewritten as e.g. *(@,/Om), which is not what you meant.
The workaround is to use reply=(*(@) *(/)) in your style instead.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author