From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15020 invoked by alias); 22 Oct 2016 21:23:15 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 39705 Received: (qmail 14975 invoked from network); 22 Oct 2016 21:23:15 -0000 X-Qmail-Scanner-Diagnostics: from mail-vk0-f54.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.213.54):SA:0(0.0/5.0):. Processed in 0.547624 secs); 22 Oct 2016 21:23:15 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at brasslantern.com does not designate permitted sender hosts) 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version; bh=OaKaHByBeSQOfBgJhFWyIA9M10EAhxJsjDCAxDLH0jc=; b=k9nXqvW/PbYZi80c+8zPZgue+fcInocJz7wEVANpU8ZtzGWMS7+zYvSLIC6yQVw0Il Wt6DrgSsWE4tOk3qoj5rcWf/xVRFIvnYTUnl0Dy6usPpH/3d/xSeGAUgu/wLlc1VCRwH OLBYNapXw8sJHlwKo2fUr1HXJpuIAEBDwLkopbfmHs9L4+7qv2c9+KnftRIf8usIsIim W1a7d3F84W7FbgyovZOQUYkWmHhRazaW6P0tVBGN+O8yEsslxC2CHxvczNcG85XTFoc2 BPKrYWmbTlTV1h4fnWrQ4rYiTzBcXAYDR3sw7G1RHNjNDzmtHD1hFUuyW0d2JfGZTet1 /eOA== X-Gm-Message-State: ABUngvd67EPOkCNdzL6MOANPoJPvovzv13TbQ5+VjlkRdbajHOXeG+7Q5fnDwIokrMvZYg== X-Received: by 10.31.215.67 with SMTP id o64mr4569250vkg.92.1477160658898; Sat, 22 Oct 2016 11:24:18 -0700 (PDT) From: Bart Schaefer Message-Id: <161022112423.ZM6178@torch.brasslantern.com> Date: Sat, 22 Oct 2016 11:24:23 -0700 In-Reply-To: Comments: In reply to Martijn Dekker "'export -p' lacks POSIX output" (Oct 22, 5:02am) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Zsh hackers list Subject: Re: 'export -p' lacks POSIX output MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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.