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

Re: (No) Exported Functions



Hi,

Suresh.Kannan@xxxxxxx wrote:
> Hi,
> 
> I've read the manuals and googled and as far as I can see, zsh
> doesn't appear to support exported functions. Is this true? If
> not please ignore the rest of the mail :)

Apart from Peter's answer which explains all of that "exported
function" stuff, I'd like to add something...

> 1. In my environment are weird and wonderful functions that do
> some useful stuff on a list of files, let's say coolfun()
> 
> I can't do a 
> $ find . -name '*.blah' | xargs coolfun # coolfun: No such file or directory

But with "setopt extendedglob" you can do a
$ coolfun **/*.blah
which is shorter anyways :)

> Thanks,
> Suresh

Ciao,
Thomas

-- 
 Thomas Köhler       Email:       jean-luc@xxxxxxxxxxxxxxxxx
     <><             WWW:           http://jeanluc-picard.de
                     IRC:                           tkoehler
                     PGP public key available from Homepage!

Attachment: signature.asc
Description: Digital signature



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