From 22430af2c7f3a268fbe0b482350ddb37a66d4765 Mon Sep 17 00:00:00 2001 From: Luis Cordova Date: Sun, 29 Mar 2015 03:09:29 -0500 Subject: [PATCH 1/3] [Enhancement] netbeans - force interactive shell when limited detection --- src/Symfony/Component/Console/Application.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Console/Application.php b/src/Symfony/Component/Console/Application.php index fa14441421c86..a973b5ac9301d 100644 --- a/src/Symfony/Component/Console/Application.php +++ b/src/Symfony/Component/Console/Application.php @@ -855,7 +855,7 @@ protected function configureIO(InputInterface $input, OutputInterface $output) $input->setInteractive(false); } elseif (function_exists('posix_isatty') && $this->getHelperSet()->has('dialog')) { $inputStream = $this->getHelperSet()->get('dialog')->getInputStream(); - if (!@posix_isatty($inputStream)) { + if (!@posix_isatty($inputStream) && !(true === getenv('SHELL_INTERACTIVE'))) { $input->setInteractive(false); } } From 5bcd576dd9325769748ff237a98e6238ee6c3ad5 Mon Sep 17 00:00:00 2001 From: Luis Cordova Date: Sun, 29 Mar 2015 08:53:57 -0500 Subject: [PATCH 2/3] simplify equality to inequality expression on SHELL_INTERACTIVE --- src/Symfony/Component/Console/Application.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Console/Application.php b/src/Symfony/Component/Console/Application.php index a973b5ac9301d..1f38ca387e18a 100644 --- a/src/Symfony/Component/Console/Application.php +++ b/src/Symfony/Component/Console/Application.php @@ -855,7 +855,7 @@ protected function configureIO(InputInterface $input, OutputInterface $output) $input->setInteractive(false); } elseif (function_exists('posix_isatty') && $this->getHelperSet()->has('dialog')) { $inputStream = $this->getHelperSet()->get('dialog')->getInputStream(); - if (!@posix_isatty($inputStream) && !(true === getenv('SHELL_INTERACTIVE'))) { + if (!@posix_isatty($inputStream) && true !== getenv('SHELL_INTERACTIVE')) { $input->setInteractive(false); } } From 4b8448ebb58581e382676a089f06caf804d0c7f9 Mon Sep 17 00:00:00 2001 From: Luis Cordova Date: Thu, 2 Apr 2015 22:27:48 -0500 Subject: [PATCH 3/3] update depending on getenv returning false --- src/Symfony/Component/Console/Application.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Console/Application.php b/src/Symfony/Component/Console/Application.php index 1f38ca387e18a..9daff3f3019b6 100644 --- a/src/Symfony/Component/Console/Application.php +++ b/src/Symfony/Component/Console/Application.php @@ -855,7 +855,7 @@ protected function configureIO(InputInterface $input, OutputInterface $output) $input->setInteractive(false); } elseif (function_exists('posix_isatty') && $this->getHelperSet()->has('dialog')) { $inputStream = $this->getHelperSet()->get('dialog')->getInputStream(); - if (!@posix_isatty($inputStream) && true !== getenv('SHELL_INTERACTIVE')) { + if (!@posix_isatty($inputStream) && false === getenv('SHELL_INTERACTIVE')) { $input->setInteractive(false); } }