* Re: surprise with echo
[not found] ` <141218190653.ZM16331__11066.8365298354$1418958515$gmane$org@torch.brasslantern.com>
@ 2014-12-21 22:35 ` Christian Neukirchen
0 siblings, 0 replies; only message in thread
From: Christian Neukirchen @ 2014-12-21 22:35 UTC (permalink / raw)
To: zsh-workers
Bart Schaefer <schaefer@brasslantern.com> writes:
> It's how array expansion works in the "rc" shell, which is the source
> from which this behavior is borrowed. There's probably an "rc" list
> somewhere where you might get an explanation.
Just for the sake of completeness, this actually differs between
Byron's rc and the Bell Labs rc:
% /usr/bin/rc
; echo $version
1.7.2 $Release: @(#)rc 1.7.2 2014-09-10 $
; x=()
; echo foo$x
foo
% /opt/plan9/bin/rc
% x=()
% echo foo$x
rc (/opt/plan9/bin/rc): null list in concatenation
Neither is how RC_EXPAND_PARAM works, but I think that the zsh
behavior makes most sense. (And is best enabled using foo$^x on demand.)
--
Christian Neukirchen <chneukirchen@gmail.com> http://chneukirchen.org
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-12-21 22:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <54937E5B.2020008@eastlink.ca>
[not found] ` <141218190653.ZM16331__11066.8365298354$1418958515$gmane$org@torch.brasslantern.com>
2014-12-21 22:35 ` surprise with echo Christian Neukirchen
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).