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

Re: Export problem

--- 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.


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