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

Re: sourcing a sh file in zsh



On Sat, 24 Jan 2009 15:26:43 -0800
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> } There's still the issue of retaining the emulation mode for functions
> } defined in that mode; I agree we really ought to tackle that to make
> } the new functionality properly useful. I expect Bart has ideas on the
> } next step; how far will we need to go?
> 
> I refer you to workers/26336 where Phil makes some comments about how
> he'd modify the wordcode to handle this.

I can't offhand think of a case that needs to be that complicated.
Either you run a chunk of code using "emulate", or you have a shell
function, possibly defined in such a chunk, where sticking the flags in
the shfunc structure for future reference is good enough.  Where would
you need something more than that?

-- 
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/



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