J Krugman <jkrugman345...yahbitoo.com> wrote:
> Is there a way to perform a syntax check on a zsh script without
> actually running the script? Something analogous to "perl -c
> foo.pl"?You could try using zcompile and throw the result away. Alternatively,
use a function definition around it to prevent it running:
eval "f() { $(<script) }"
Oliver
oliver_kiddle
| Wed, 30 Apr 2008 14:13:00 GMT |