zsh-workers
 help / color / mirror / code / Atom feed
* expansion bug in 4.0.3?
@ 2001-11-03  8:00 Danek Duvall
  2001-11-03 16:43 ` PATCH: " Bart Schaefer
  0 siblings, 1 reply; 4+ messages in thread
From: Danek Duvall @ 2001-11-03  8:00 UTC (permalink / raw)
  To: zsh-workers

This example is easily reconstructed on Linux:

    % echo $$
    146
    % print -l ${$(</proc/$$/environ)}
    DISPLAY=:0.0 HOME=/home/duvall LOGNAME=duvall USER=duvall [ ... ]
    % print -l ${$(</proc/146/environ)}
    DISPLAY=:0.0
    HOME=/home/duvall
    LOGNAME=duvall
    USER=duvall
    [ ... ]

The only difference is that in one case the filename is specified with a
parameter, in the other, without.  If, in the former case, I explicitly
split on spaces:

    % print -l ${(s: :)$(</proc/$$/environ)}

then I get the output I want.  Alternatively, if I skip the outer
braces:

    % print -l $(</proc/$$/environ)

then the output also comes out on multiple lines.

(For those not on Linux, this file contains fields separated by null
characters.)

Is this a bug, or is there some behavior I'm not understanding properly?

Thanks,
Danek


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-11-03 20:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-03  8:00 expansion bug in 4.0.3? Danek Duvall
2001-11-03 16:43 ` PATCH: " Bart Schaefer
2001-11-03 17:13   ` Bart Schaefer
2001-11-03 20:35   ` [16215] " Danek Duvall

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).