Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
A conditional test to see whether a function is loaded?
- X-seq: zsh-users 11536
- From: William Scott <wgscott@xxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: A conditional test to see whether a function is loaded?
- Date: Sat, 9 Jun 2007 05:31:32 -0700
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Reply-to: wgscott@xxxxxxxxxxxxxxxxxx
Hi everyone:
I want to write a shell script that (among other things) tests to see
if a function foo is loaded.
Is there something analogous to [[ -x $(which foo) ]] that would
test specifically for a loaded function, or an autoloadable function,
rather than an executable file?
Thanks.
Bill
William G. Scott
contact info: http://chemistry.ucsc.edu/~wgscott
Messages sorted by:
Reverse Date,
Date,
Thread,
Author