On Wed, 25 Jul 2007, Micah Cowan wrote: > As pointed out, there will be some work necessary to allow for > portability across other platforms, and use of stdin/stdout may not be
The autoconf macro I quoted solves the problem for *nix systems -- anybody with an incompatible configuration is welcome to provide a suitable solution they need. > the most appropriate. I'm not entirely certain that stderr will always > be our best solution: I'm thinking fall back on that, and on systems > where it works the way one expects (I'm not certain which those are), > open "/dev/tty"? It might work, especially as this is an optional feature, though care has to be taken as when a device is hardcoded explicitly there is no way to redirect it from elsewhere. I had hassle with such arrangements in some pieces of software in the past. As I say it has been solved somehow with `ssh' and given OpenSSH is BSD-licensed, there should be no problem with taking bits even if they do not qualify as obvious or trivial. Maciej
