Oddities in pipeio
- Posted by AlexXX Feb 15, 2021
- 933 views
For my program, I needed the pipeio.e library, after reading the documentation, I decided to try an example from there. Neither in Euphoria, nor in OE, nor in Phix, it did not work in windows XP. By the way in Phix this library does not work without improvement
include std/pipeio.e as pipe integer i object z = pipe:create() object p = pipe:exec("dir", z) if atom(p) then sprintf("Failed to exec() with error %x", pipe:error_no()) else object c = pipe:read(p[pipe:STDOUT], 6024) end if pipe:kill(p) ?1/0 i=getc(0)
It does not work exactly for the "dir" command"