Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: 'export -p' lacks POSIX output
- X-seq: zsh-workers 39705
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: 'export -p' lacks POSIX output
- Date: Sat, 22 Oct 2016 11:24:23 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=OaKaHByBeSQOfBgJhFWyIA9M10EAhxJsjDCAxDLH0jc=; b=SLwPmo3ZqS3439QogWqEC4Osw2JxZ9GoWFK16UeykZsVNBIGYXFVDUMhcGj69SgQW5 dnYPJ39DBuj7sp6dlCdgFzEIM616Mq9XM5p0xWpR+n7m2QlxmahJk/bJlkUB8Y/FbLJl DjKhO/5tTmFKHNyFHyhChv6m8q3Rr12P9Q+ecMnhhY4NHwQ6Kl8gqB/4nGTKGaWQ1KyB UwvIuyUclNQGFo7fUscoqU7OqOR/ryCARF5eB7sRsfww2ZA9PinL+abm0mqyEYDJLhQu Sy712qgSjRPI+dmxpZKJ9Y/BCpXAQqtKse8YC+MoBO9n/XE5xOuTbegNC1pgNR1U581i 51Qg==
- In-reply-to: <ca368ae0-3c79-0245-6905-09a5fc563c28@inlv.org>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <ca368ae0-3c79-0245-6905-09a5fc563c28@inlv.org>
On Oct 22, 5:02am, Martijn Dekker wrote:
} Subject: 'export -p' lacks POSIX output
}
} The command 'export -p' always outputs 'typeset' commands. If
} POSIXBUILTINS is active, it should output 'export' commands.
Would anyone object if this just happened all the time, rather than
depending on POSIXBUILTINS + "export"?
The decision of what command name to print is buried way down in the
depths of hash table scanning callbacks, which although it could test
for POSIXBUILTINS, has no knowledge of the original command name used
to invoke the scan. (This is a bugaboo for the zsh/param/private
module, so I'm pretty intimately familiar with it at this point.)
More explicitly,
typeset -x foo=bar
typeset -p foo
would print
export foo=bar
even if POSIXBUILTINS were not set.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author