From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12059 invoked by alias); 29 Oct 2016 19:11:25 -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: 39763 Received: (qmail 13363 invoked from network); 29 Oct 2016 19:11:25 -0000 X-Qmail-Scanner-Diagnostics: from mail-ua0-f179.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.217.179):SA:0(0.0/5.0):. Processed in 0.140855 secs); 29 Oct 2016 19:11:25 -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=SPF_PASS,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: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.217.179 as permitted sender) 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=fRqGSA8QYDTI3IVKPglfej2ZTc0UvrPEuXxdXppddvs=; b=1KMF+hREK8bw8vOTQAC1dnTAJt2gBVl+6p8xwdfoyXW2F1PoQL29+t0nAIfjEZy8L9 bRZCkUj4hMyWezE7O2q3PvT6pNzB0fIURwukP+J4xFgx70fMZJtbRwIgNCfwkJOxsA0D HyxMnVNT+TuSMBnp1W7Werl89oozzCFbLRDaTyEA5vETqOSn3v2UhxBI4YVOZ+jUaXgF CouYe0yw69XmkGqaluuge84Y1XQgfjcmlNGDjniMPU2jwFtf0mbBYOOS1+avmZgMHKI0 bOwS91pMeX2thWhMXtijYJVHHU6H4OaaelD4U9e5DbGErIWI0Hk4qQcDIN78e9FzC72R I2kg== 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=fRqGSA8QYDTI3IVKPglfej2ZTc0UvrPEuXxdXppddvs=; b=gTU6l8BxblHUJAGMqRa6BqPYlqHcuypDhDW2S7GUZVxe+8wUUmuoOQ7Zz9vnTwZZTF ewj8hV4ybHG/K7edausxS1nR+Qj4j+//99Xitfuf/dH94yPPBQjLS4YD3At34eZXYGeR baCoyFVdFbY3VLokw28mdfGVXlndsCy41wKhW8ru3XQGZMz+ABJoMzV3tpJ2RrruYbea 4n5W+zFu9caR53pL7QCgJmvQb15cKY300yM1ZKLgIsJHNIvSTpll47Y8onufimuhKDAK jKL71uxgeZQOGsdbXZSbBRNK9JCwBarLVoouctlXz6IkPL0TSFqyfdotv4DjgjFX/1Cj pTog== X-Gm-Message-State: ABUngvcrWkS0AlV2q1DncdTLBxAFnp7d8ABWHmlyEPmdrJ8vvTjElGDqSL4uC8VI73GXeg== X-Received: by 10.176.82.48 with SMTP id i45mr15513075uaa.126.1477767937351; Sat, 29 Oct 2016 12:05:37 -0700 (PDT) From: Bart Schaefer Message-Id: <161029120555.ZM17132@torch.brasslantern.com> Date: Sat, 29 Oct 2016 12:05:55 -0700 In-Reply-To: <6db9e2a5-8f0b-71a2-95e6-8a8bbf4a281e@inlv.org> Comments: In reply to Martijn Dekker "Re: exported unset variables [was: 'export -p' lacks POSIX output]" (Oct 29, 9:11am) References: <9a5b08ae-f45b-d1df-9b3b-dd47a0f62412@inlv.org> <161028143156.ZM19947@torch.brasslantern.com> <161028171859.ZM2366@torch.brasslantern.com> <6db9e2a5-8f0b-71a2-95e6-8a8bbf4a281e@inlv.org> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Zsh hackers list Subject: Re: exported unset variables [was: 'export -p' lacks POSIX output] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Oct 29, 9:11am, Martijn Dekker wrote: } } > } (Also, is it correct/expected behaviour that zsh doesn't parse comments } > } on the interactive command line? Blindly copying/pasting the above won't } > } work for that reason.) } > } > Yes, the option INTERACTIVE_COMMENTS has to be set to recognize comments } > at the command line. Should this be on in POSIX mode? } } I think so. All the other shells recognise comments in interactive mode } by default. Hmm, it looks like this is already the case; if I invoke zsh as "ksh": $ setopt | grep comment nointeractivecomments off And indeed the source gives interactivecomments the OPT_BOURNE flag. The only other thing might be to also give it the OPT_EMULATE flag, but I'm uncertain about that. In what circumstances are you encountering difficulty with this?