Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: emulate (Re: Prompt fun)
- X-seq: zsh-workers 8174
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Zefram <zefram@xxxxxxxx>
- Subject: Re: PATCH: emulate (Re: Prompt fun)
- Date: Thu, 7 Oct 1999 18:56:50 +0000
- Cc: zsh-workers@xxxxxxxxxxxxxx
- In-reply-to: <E11ZHMN-0002mM-00@xxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <E11ZHMN-0002mM-00@xxxxxxxxxxxxxxxxxx>
On Oct 7, 6:29pm, Zefram wrote:
> Subject: Re: PATCH: emulate (Re: Prompt fun)
> emulate without -R is supposed to
> emulate (hence the name) the specified shell, as much as necessary for
> scripts to be able to run unchanged
Yes; the question is, when "the specified shell" is zsh, what does it mean
to emulate it? After all, zsh is already zsh ... by definition, any option
not specifically intended for emulation of some other shell is already
being emulated "as if zsh," no matter what its setting.
However, this is mostly thinking about things from an interactive-shell
viewpoint, not from a function/script viewpoint. So how about this:
> >[I'm] loathe to make "silent" changes to the option semantics. I'd much
> >rather see an additional flag to "emulate" that catches these additional
> >problem cases.
>
> So when would we use this additional flag? It would have to be used
> essentially all the time, with plain emulate left just for backward
> compatibility.
We already have to use the -L option essentially all the time, and it makes
little sense to use -L in an interactive context. Why not overload -L with
this semantics, and leave plain "emulate" as it was?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author