in reply to dancing with /dev/tty

Is there a reason why you can't just give the filename of the above script to the open2 in another script?

-M

Free your mind

Replies are listed 'Best First'.
Re^2: dancing with /dev/tty
by Irrelevant (Sexton) on Mar 08, 2007 at 02:48 UTC

    You make a good point, actually. Had no-one devised a solution, that's what i've'd ended up doing. I initially hoped to avoid re-inventing the wheel, but I did that anyway in the purpose of devising the description of what i meant. *g*

    As it is, I guess eliminating a script makes the code neater, and there won't come a time in the future when a maintainer sees this project (it having lasted unexpectedly long, as the quick hacks're wont to do) and thinks "WTF? This could be one line of shell script!". So at least I've saved face with the anonymous future, eh.

     ~ Irr