Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

rcexpandparam doesn't take effect in ${=:-one $array}



Hi,

I found that no matter rcexpandparam being set or not, ${=:-one $array}
will expand to the same result:

    % zsh -f
    localhost% array=(two three)
    localhost% print -l ${:-one $array}
    one two
    three
    localhost% print -l ${=:-one $array}
    one
    two
    three
    localhost% setopt rcexpandparam
    localhost% print -l ${:-one $array}
    one two
    one three
    localhost% print -l ${=:-one $array}
    one
    two
    three
    localhost%

I think the last command should print
	
    one
    two
    one
    three

but it isn't.

Thanks in advance.



Messages sorted by: Reverse Date, Date, Thread, Author