Navigation Menu

Skip to content

Commit

Permalink
[Enhancement] netbeans - force interactive shell when limited detection
Browse files Browse the repository at this point in the history
  • Loading branch information
cordoval authored and fabpot committed Apr 3, 2015
1 parent 36d62ee commit 02cda05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Console/Application.php
Expand Up @@ -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) && false === getenv('SHELL_INTERACTIVE')) {
$input->setInteractive(false);
}
}
Expand Down

0 comments on commit 02cda05

Please sign in to comment.