Skip to content

Can't run help commands in docker/alpine because imcompatible less options #3840

@sir-gon

Description

@sir-gon

I'm getting this output trying to see wp-cli help.

/var/www/html # wp --allow-root help
less: unrecognized option: r
BusyBox v1.24.2 (2016-11-01 12:56:05 GMT) multi-call binary.

Usage: less [-EIMmNSh~] [FILE]...

View FILE (or stdin) one screenful at a time

	-E	Quit once the end of a file is reached
	-I	Ignore case in all searches
	-M,-m	Display status line with line numbers
		and percentage through the file
	-N	Prefix line number to each line
	-S	Truncate long lines
	-~	Suppress ~s displayed past EOF

I'm running in a custom images based on php:7-fpm-alpine.
Googling, I found the same issue in this (another) project: pry/pry#1494 (comment)

They has a workaround, but is possible to make wp-cli more compatible?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions