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

Re: Using zsh in gcc compilation

On Thu, Sep 19, 2002 at 04:18:52PM +0100, Peter Stephenson wrote:
> That's extremely plausible --- `on' occurs very frequently in $options.

Confirmed. Now gcc compiles fine with a different name for the options
variable in the genmultilib script. Anyway i don't think gcc scripts should
be changed to solve this problem.

> But that implies the zsh/parameter module is loaded.  It shouldn't be
> doing this by default in sh emulation. 

No, it isn't loaded. In sh emulation just main,complete,compctl and zle are
loaded, or just main if the shell is not interactive.

> You might want to check what
> startup scripts are being executed for sh mode (running with the option
> -x should show this).

With sh emulation, no scripts are loaded. I haven't a /etc/profile or the like.

> I'm not sure if there's a general way round this.  We would look to move
> towards separate namespaces, but that needs someone to do the work.
> It's a shame we didn't initially use names like zsh_options instead.

Yep, i think options is a name too common to be used as a global variable
in zsh, zsh_options is much better.

Thanks a lot for your help to find out the cause of this problem ;)

David Gómez

"The question of whether computers can think is just like the question of
 whether submarines can swim." -- Edsger W. Dijkstra

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