Skip to content

Command less not available on the current machine #5333

@dhalucario

Description

@dhalucario

Bug Report

Describe the current, buggy behavior

Running wp-cli without any arguments tries to open less. This will not work if less is not installed.

Describe how other contributors can replicate this bug

  • run wp-cli
  • wait a couple seconds
  • it returns sh: 1: less: not found

Describe what you expect as the correct outcome

Maybe a simple manual page like you would get with --help

Let us know what environment you are running this on
Ubuntu Docker

OS:     Linux 5.3.16-300.fc31.x86_64 #1 SMP Fri Dec 13 17:59:04 UTC 2019 x86_64
Shell:
PHP binary:     /usr/local/bin/php
PHP version:    7.2.4
php.ini used:
WP-CLI root dir:        phar://wp-cli.phar/vendor/wp-cli/wp-cli
WP-CLI vendor dir:      phar://wp-cli.phar/vendor
WP_CLI phar path:       /var/www/html
WP-CLI packages dir:
WP-CLI global config:
WP-CLI project config:  /var/www/html/wp-cli.yml
WP-CLI version: 2.4.0

Provide a possible solution

Provide additional context/screenshots
grafik

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions