zsh-workers
 help / color / mirror / code / Atom feed
* vared doesn't honour leading escaped separator
@ 2020-05-27  0:53 Daniel Shahaf
  0 siblings, 0 replies; only message in thread
From: Daniel Shahaf @ 2020-05-27  0:53 UTC (permalink / raw)
  To: zsh-workers

[[[
% () { IFS=: vared argv; typeset -p argv } :foo:bar : baz
\:foo\:bar:\::baz
typeset -g -a argv=( '' foo:bar : baz )
% 
]]]

When vared opened, I just pressed <Enter> without changing the line in
any way.  Accordingly, I expected argv not to be changed by the edit.

This is due to the spacesplit() call at the end of bin_vared().

Changing the value of the second parameter (allownull) doesn't fix it,
but does cause «typeset -p argv» not to emit the two single quotes
around the first value (!?).

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-05-27  0:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-27  0:53 vared doesn't honour leading escaped separator 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).