Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: possibly useful zsh_directory_name implementation
On Fri, 11 Mar 2011 16:25:14 +0000
Peter Stephenson <Peter.Stephenson@xxxxxxx> wrote:
> +local func
> +
> +if [[ -n $functions[zsh_directory_name] || \
> + ${+zsh_directory_name_functions} -ne 0 ]] ; then
> + zsh_directory_name c && return 0
> + for func in $zsh_directory_name_functions; do
> + $func c && return 0
> + done
> + return 1
Instantly after sending this, I realised it should try all functions and
return status 0 or 1 based on whether any were successful. I've
submitted it in that form.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited
Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK
Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
Messages sorted by:
Reverse Date,
Date,
Thread,
Author