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

Re: sourcing a sh file in zsh



On Sat, Jan 24, 2009 at 18:38, Peter Stephenson
<p.w.stephenson@xxxxxxxxxxxx> wrote:
> I don't think functions should
> *always* inherit the emulation because it changes the current behaviour
> too much---we would be resetting a whole load of options before every
> function call.

Me neither. If people think this is useful, it might make sense as an
option, but it's way too magical for my taste.


> I would guess we don't want to apply it to autoloaded functions which
> already have their own rules.  We can also add commands to tweak the
> emulation mode for individual functions, but that can be done
> separately.
>
> We do need to be quite clear on the rules to avoid tying ourselves in
> knots with things like "emaulate -LRE sh autoload foo".  "foo", in my
> interpretation, would not inherit sh behaviour here.  I think nested
> "emulate"s should be unproblematic, however.

Agreed.


Richard



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