in reply to Detecting interactive/non-interactive shell

Do not expect users of Cygwin-Perl to see the expected behavior if you do employ the -t test to try to determine the context. An interactive shell will not be detected in that case.

I don't have a workaround for this, I merely have known it to be broken for a while now. I also do not know when (at what release of Perl) it broke (if it ever worked), or if it has since been fixed. It would be right nice, podners, if it WAS to be fixed, since people's Makefile.PLs that ask for user input at module build time are broken by this on Cygwin, too.

Update 19 Sept 2005

I concur that it seems to have been fixed in the latest releases on cygwin-perl. Yay!

    Soren A / somian / perlspinr / Intrepid

  • Comment on Re: Detecting interactive/non-interactive shell

Replies are listed 'Best First'.
Re^2: Detecting interactive/non-interactive shell
by Anonymous Monk on Jul 05, 2005 at 01:59 UTC
    Looks like it has been fixed:
    $ perl -e 'print -t' 1 $ perl -e 'print -t' < /etc/passwd $ perl -v This is perl, v5.8.2 built for cygwin-thread-multi-64int ...