Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Export problem
- X-seq: zsh-workers 14723
- From: a normal guy <ee_in_co@xxxxxxxxx>
- To: Zsh Hackers <zsh-workers@xxxxxxxxxxxxxx>
- Subject: Re: Export problem
- Date: Tue, 5 Jun 2001 08:52:36 -0700 (PDT)
- In-reply-to: <1010605064402.ZM4270@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.
Scott
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author