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

Re: More Configure problems

hzoli@xxxxxxxxxx wrote:
> I did not test this patch, since I'd like to catch the last but home from
> the university so it may be buggy.  Please test it.

With this set of patches perl built OK with zsh linked to sh and
passed all tests, the process including & -d, shell escapes, etc.  I
couldn't rewire /bin/sh, but most shell scripts during the build are
called with an explicit `sh', so this is quite a good test.

I'm planning on including a clearer summary of compatiblity in the
appropriate section of the FAQ, B1; here is a preview.

  As a summary of the status:
    i) because of all the options it is not safe to assume a general
       zsh run by a user will behave as if sh or ksh compatible;
   ii) invoking zsh as sh or ksh (including if either is a symbolic
       link to zsh) sets appropriate options and improves
  iii) from version 3.0 onward the degree of compatibility with sh
       under these circumstances is very high:  zsh can now be used
       with GNU configure or perl's Configure, for example;
   iv) the degree of compatibility with ksh is also high, but a few
       things are missing:  for example the more sophisticated
       pattern-matching expressions are different --- see the detailed
       list below;
    v) also from 3.0, the command `emulate' is available: `emulate
       ksh' and `emulate sh' set various options as well as changing the
       effect of single-letter option flags as if the shell had been
       invoked with the appropriate name.  Including the commands
       `emulate sh; setopt localoptions' in a shell function will
       turn on sh emulation for that function only.

Peter Stephenson <pws@xxxxxx>       Tel: +49 33762 77366
WWW:  http://www.ifh.de/~pws/       Fax: +49 33762 77330
Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.

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