in reply to Re: Fool a process into thinking that STDOUT is a terminal
in thread Fool a process into thinking that STDOUT is a terminal

Hmmm... I guess it could be a version issue... I'm workin off of 5.005_03, also on linux.

I suppose it could also have to do with this issue listed in the docs for IO::Tty

       · Linux 2.2.x & 2.4.x
           Returns EIO instead of EOF when the slave is closed.  Benign.
Not sure.

------------
:Wq
Not an editor command: Wq
  • Comment on Re: Re: Fool a process into thinking that STDOUT is a terminal

Replies are listed 'Best First'.
Re^3: Fool a process into thinking that STDOUT is a terminal
by seki (Monk) on Oct 17, 2018 at 11:26 UTC

    I found the current thread with the same need as the OP, and interestingly, 15+ years later with IO-Tty-1.12 / Perl 5.22.0 / Linux 4.17.19 i also get strange varying result with a simple 'ls -la': sometimes only the total line, sometimes a single line from the ls, sometimes to whole output...

    The best programs are the ones written when the programmer is supposed to be working on something else. - Melinda Varian