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

Re: pruning path array.



On Nov 14, 12:18pm, Anthony R Iano-Fletcher wrote:
}
} How do I delete elements of an array (say path) that do not exist as
} directories?

    path=( ${^path}(N/) )

Or, if you want symlinks to directories to be kept,

    path=( ${^path}(N-/) )



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