zsh-workers
 help / color / mirror / code / Atom feed
From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: zsh-workers@zsh.org
Subject: FAQ 3.1 (word splitting) is out of date when 'typeset' is a reserved word
Date: Tue, 26 May 2020 19:10:49 +0000	[thread overview]
Message-ID: <20200526191049.GA16079@tarpaulin.shahaf.local2> (raw)

% < 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

                 reply	other threads:[~2020-05-26 19:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200526191049.GA16079@tarpaulin.shahaf.local2 \
    --to=d.s@daniel.shahaf.name \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).