zsh-workers
 help / color / mirror / code / Atom feed
From: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
To: "a normal guy" <ee_in_co@yahoo.com>,
	"Zsh Hackers" <zsh-workers@sunsite.auc.dk>
Subject: RE: Export problem
Date: Wed, 6 Jun 2001 09:56:24 +0400	[thread overview]
Message-ID: <000801c0ee4d$6b321270$21c9ca95@mow.siemens.ru> (raw)
In-Reply-To: <20010605155236.50747.qmail@web12508.mail.yahoo.com>


>
>
> --- Bart Schaefer <schaefer@candle.brasslantern.com> 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


  reply	other threads:[~2001-06-06  5:56 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1010605064402.ZM4270@candle.brasslantern.com>
2001-06-05 15:52 ` a normal guy
2001-06-06  5:56   ` Andrej Borsenkow [this message]
2001-06-06 10:06     ` Bart Schaefer
2001-06-11 18:24 HP-UX 11.00 tgetenv dilemma Andrej Borsenkow
2001-06-11 22:05 ` Export problem a normal guy
  -- strict thread matches above, loose matches on Subject: below --
2001-06-04 18:30 a normal guy
2001-06-04 18:42 ` Geoff Wing
2001-06-05  5:18   ` Andrej Borsenkow
2001-06-05  9:35     ` Peter Stephenson
2001-06-06  7:51       ` Clint Adams
2001-06-06  8:18         ` Andrej Borsenkow
2001-06-06 13:48           ` Clint Adams
2001-06-06 14:41             ` Andrej Borsenkow
2001-06-06 15:23               ` Clint Adams
2001-06-06  8:27       ` Andrej Borsenkow
2001-06-05  9:39     ` Peter Stephenson
2001-06-05 10:16       ` Andrej Borsenkow

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000801c0ee4d$6b321270$21c9ca95@mow.siemens.ru' \
    --to=andrej.borsenkow@mow.siemens.ru \
    --cc=ee_in_co@yahoo.com \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).