Submitted as issue 13519 <https://github.com/JuliaLang/julia/issues/13519>

On Friday, October 9, 2015 at 4:43:53 PM UTC-7, Jameson wrote:
>
> It looks like a bug
> On Fri, Oct 9, 2015 at 7:37 PM Peter Simon <[email protected] 
> <javascript:>> wrote:
>
>> The following works under Julia 0.3 but fails under Julia 0.4:
>>
>> stdout_orig = STDOUT
>> (tstream, teeproc) = open(`tee -a temp.txt`, "w", stdout_orig)
>> redirect_stdout(tstream)
>>
>>
>> The error message under Julia 0.4.0 is generated by the final line above 
>> and reads: "ERROR: MethodError: `redirect_stdout` has no method matching 
>> redirect_stdout(::Pipe)".  But according to the documentation for 
>> redirect_stdout, the argument to the function can be a pipe.  Is this 
>> behavior intentional and merely a documentation error or is it a bug?
>>
>> Thanks,
>> Peter
>>
>

Reply via email to