* FAQ 3.1 (word splitting) is out of date when 'typeset' is a reserved word
@ 2020-05-26 19:10 Daniel Shahaf
0 siblings, 0 replies; only message in thread
From: Daniel Shahaf @ 2020-05-26 19:10 UTC (permalink / raw)
To: zsh-workers
% < 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-05-26 19:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-26 19:10 FAQ 3.1 (word splitting) is out of date when 'typeset' is a reserved word Daniel Shahaf
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).