2017-05-24 17:00:25 +0200, Joerg Schilling:
[...]
> > Let's be serious, if "posh" had such a bug it would have been
> > reported long ago and fixed. Presumably, you've compiled
> > it in a such way or on such a system that has never been tested
> > before and triggered a bug.
> 
> A shell that does not work correctly when compiled from the latest source has 
> a 
> problem. This definitely applies to posh.

Definitely. But here, that's (most probably) a compatibility
bug. It says nothing about posh usability as a POSIX shell on
systems where it builds successfully.

> > to your ~/.zshenv and run your "configure" script as:
> >
> >   ZSH_EMULATION=sh CONFIG_SHELL=/usr/bin/zsh  /usr/bin/zsh ./configure
> 
> Ok this is what I get:
> 
> ZSH_EMULATION=sh CONFIG_SHELL=/usr/bin/zsh  /usr/bin/zsh ./configure
> ./configure:777: no matches found: conftest*
> creating cache ./config.cache
> ^C./configure:828: no matches found: conftest*
[...]

You possibly overlooked the part about adding

if [ -n "$ZSH_EMULATION" ]; then
  emulate "$ZSH_EMULATION"
fi

to your ~/.zshenv.

Verify by running:

ZSH_EMULATION=sh zsh -xc 'echo /configtest*'

It should show something like:

+/home/chazelas/.zshenv:1> [ -n sh ']'
+/home/chazelas/.zshenv:2> emulate sh
+zsh:1> echo '/configtest*'
/configtest*

-- 
Stephane

Reply via email to