|
Re: tee-object bug The problem occurs when value is piped to sv or pass to sv by tee.
# no problem
rv test -ea 0
sv test ([Xml]"<hello>there</hello>")
$test
# problen when assigned by piped value
rv test -ea 0
[Xml]"<hello>there</hello>" | sv test
$test
rv test -ea 0
[Xml]"<hello>there</hello>" | % {sv test ($_)}
$test
# problem because tee calls sv
rv test -ea 0
tee -va test -input ([Xml]"<hello>there</hello>")
$test
rv test -ea 0
[Xml]"<hello>there</hello>" | tee -va test
$test
---
somebody |