On 6/30/05, Juan Jose Garcia Ripoll <jlr@...> wrote:
> William Bland wrote:
> >I'm using ECLS to write some command-line unix programs, and I need to
> >determine if *standard-input* is coming from an interactive terminal,
> >e.g. someone said:
> >$ myprogram arg1 ... argn
> >or if *standard-input* is being redirected from a pipe or a file, e.g.
> >$ myprogram arg1 ... argn < file
> >$ otherprogram | myprogram arg1 ... argn
> INTERACTIVE-STREAM-P should be enough (See below). The problem is that
> the unix port was missing some code in the configuration to detect
> whether the C function which implements this functionality (isatty())
> exists. I am committing now a fix.
Hi, thanks for the quick response.
Unfortunately the latest ecls from cvs returns NIL in both cases for
(interactive-stream-p *standard-input*) for me on Linux (Gentoo). Any