From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19887 invoked by alias); 12 Apr 2015 23:02:53 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 20149 Received: (qmail 15693 invoked from network); 12 Apr 2015 23:02:41 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DATE_IN_PAST_06_12, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.2 Date: Sun, 12 Apr 2015 21:40:49 +0800 From: Han Pingtian To: zsh-user Subject: question about posixbuiltins Message-ID: <20150412134049.GB2759@localhost.localdomain> Mail-Followup-To: zsh-user MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.23 (2014-03-12) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15041222-0005-0000-0000-00000A06E440 Hi, The manual says: POSIX_BUILTINS When this option is set the command builtin can be used to exe‐ cute shell builtin commands. Parameter assignments specified before shell functions and special builtins are kept after the command completes unless the special builtin is prefixed with the command builtin. Special builtins are ., :, break, con‐ tinue, declare, eval, exit, export, integer, local, readonly, return, set, shift, source, times, trap and unset. But looks like the parameter assignment before "command special-builtin" is kept even though POSIX_BUILTINS has been set: % zsh -f localhost% setopt posixbuiltins localhost% foo=bar command export a=b localhost% print $foo bar localhost%