Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: Export problem
- X-seq: zsh-workers 14726
- From: "Andrej Borsenkow" <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: "a normal guy" <ee_in_co@xxxxxxxxx>, "Zsh Hackers" <zsh-workers@xxxxxxxxxxxxxx>
- Subject: RE: Export problem
- Date: Wed, 6 Jun 2001 09:56:24 +0400
- Importance: Normal
- In-reply-to: <20010605155236.50747.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
>
>
> --- Bart Schaefer <schaefer@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
> > On Jun 5, 9:18am, Andrej Borsenkow wrote:
> > } Subject: RE: Export problem
> > }
> > } This is a bug. No field splitting should be done in
> > parameter assignment
> > } context.
> >
> > The arguments of the `export' command are not a parameter
> > assignment context,
> > or at least zsh has never treated them as such. If you want
> > parameter
> > assignment context, you have to do two separate commands:
> >
> > RUN_DATE=`date +%Y%m%e%H%M.%S`
> > export RUN_DATE
> >
> > This does not do field splitting.
> >
> > If the SUS says elsewhere that the arguments of `export' (and
> > `typeset' et al.) are to be parsed as parameter assignments,
> > we're going to have to change `export' (etc.) from command
> > names to keywords.
>
> As for compatibility with other shells (POSIX, Korn shell,
> BASH), this would need to be addressed. An option setting would
> do if necessary.
>
To clarify:
1. I was wrong initially (missed export). SUS never says that export is to
be treated differently from any other command. So there is no question about
POSIX compatibility (zsh is already POSIX-compatible)
2. Both bash and ksh88 (version that I have) do not split export arguments.
That calls for compatibility option.
I am not sure how to call it. May be it is time to start POSIX_* set of
options. POSIX_EXPORT_SPLIT?
-andrej
Messages sorted by:
Reverse Date,
Date,
Thread,
Author