We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3361cc1 commit 314caecCopy full SHA for 314caec
lib/cli/Shell.php
@@ -34,7 +34,7 @@ static public function columns() {
34
if ( function_exists( 'exec' ) ) {
35
if ( self::is_windows() ) {
36
// Cater for shells such as Cygwin and Git bash where `mode CON` returns an incorrect value for columns.
37
- if ( ( $shell = getenv( 'SHELL' ) ) && preg_match( '/(?:bash|zsh)(?:.exe)?$/', $shell ) && getenv( 'TERM' ) ) {
+ if ( ( $shell = getenv( 'SHELL' ) ) && preg_match( '/(?:bash|zsh)(?:\.exe)?$/', $shell ) && getenv( 'TERM' ) ) {
38
$columns = (int) exec( 'tput cols' );
39
}
40
if ( ! $columns ) {
0 commit comments