Skip to content

Commit 7dca9a9

Browse files
committed
bug symfony#14102 [Enhancement] netbeans - force interactive shell when limited detection (cordoval)
This PR was squashed before being merged into the 2.3 branch (closes symfony#14102). Discussion ---------- [Enhancement] netbeans - force interactive shell when limited detection |Q |A | |--- |---| |Bug Fix? |y | |New Feature? |n | |BC Breaks? |n | |Deprecations?|n | |Tests Pass? |y | |Fixed Tickets| symfony#9946 | |License |MIT| |Doc PR | | Commits ------- 02cda05 [Enhancement] netbeans - force interactive shell when limited detection
2 parents a3f9c7f + 02cda05 commit 7dca9a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Console/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ protected function configureIO(InputInterface $input, OutputInterface $output)
855855
$input->setInteractive(false);
856856
} elseif (function_exists('posix_isatty') && $this->getHelperSet()->has('dialog')) {
857857
$inputStream = $this->getHelperSet()->get('dialog')->getInputStream();
858-
if (!@posix_isatty($inputStream)) {
858+
if (!@posix_isatty($inputStream) && false === getenv('SHELL_INTERACTIVE')) {
859859
$input->setInteractive(false);
860860
}
861861
}

0 commit comments

Comments
 (0)