From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 19197 invoked from network); 26 May 2020 19:11:33 -0000 Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with ESMTPUTF8; 26 May 2020 19:11:33 -0000 Received: (qmail 21267 invoked by alias); 26 May 2020 19:11:26 -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: List-Unsubscribe: X-Seq: 45922 Received: (qmail 23783 invoked by uid 1010); 26 May 2020 19:11:26 -0000 X-Qmail-Scanner-Diagnostics: from wout3-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.3/25821. spamassassin: 3.4.4. Clear:RC:0(64.147.123.19):SA:0(-2.6/5.0):. Processed in 0.729694 secs); 26 May 2020 19:11:26 -0000 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedruddvvddgudeftdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfggtggugfgfsehtke dttddtreejnecuhfhrohhmpeffrghnihgvlhcuufhhrghhrghfuceougdrshesuggrnhhi vghlrdhshhgrhhgrfhdrnhgrmhgvqeenucggtffrrghtthgvrhhnpedvhfejteeufefgge evjefftdevueekheejteekveeuveevudefledtieduieehtdenucfkphepjeelrddujeei rdefledrieelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepugdrshesuggrnhhivghlrdhshhgrhhgrfhdrnhgrmhgv X-ME-Proxy: Date: Tue, 26 May 2020 19:10:49 +0000 From: Daniel Shahaf To: zsh-workers@zsh.org Subject: FAQ 3.1 (word splitting) is out of date when 'typeset' is a reserved word Message-ID: <20200526191049.GA16079@tarpaulin.shahaf.local2> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.10.1 (2018-07-13) % < Etc/FAQ.yo nl -ba | vipe 930 chapter(How to get various things to work) 931 932 sect(Why does mytt($var) where mytt(var="foo bar") not do what I expect?) 933 label(31) ⋮ 1014 There is one other effect of word splitting which differs between ksh 1015 and zsh. In ksh, the builtin commands that declare parameters such 1016 as tt(typeset) and tt(export) force word-splitting not to take place 1017 after on an assignment argument: 1018 verb( 1019 typeset param=`echo foo bar` 1020 ) 1021 in ksh will create a parameter with value mytt(foo bar), but in zsh will 1022 create a parameter tt(param) with value tt(foo) and a parameter tt(bar) 1023 whose value is empty. […] % typeset param=`echo foo bar` % typeset -p param typeset param='foo bar' % That's on my list to fix, but feel free to beat me to it. Cheers, Daniel