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

Zsh and Autotest


Autotest is a testing framework based on ideas similar to those of
Autoconf.  Autoconf's own test suite is based on Autotest.  An
Autotest test suite is basically a huge for/case/esac/done (25k lines
for Autoconf).  Nobody ever complained about a shell having problems
to handle this.

Nevertheless when I try to run it with Zsh, it basically kills my
machine without starting actual work (-x shows it stops at the for,
i.e., I guess it is trying to find the matching done).  I never had
enough patience to see whether it is still preparing before running,
it's just too painful seeing Zsh swallowing the resources like this.

I personally don't care, Bash and Ash run it fine, but maybe you
wanted to know.  If people want to give it a try, download


The test suite is the shell script `tests/testsuite', which is created
via make check or make testsuite.


PS/  By the way, yes there is Sh compatibility code in there:

#! /bin/sh

# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  set -o posix

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