Bug #48125 [Com]: php-cli makes "less" command behave differently
| From: | jonhattan at faita dot net | Date: | Fri, 29 Oct 2010 18:17:09 +0000 |
| Subject: | Bug #48125 [Com]: php-cli makes "less" command behave differently | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-155634@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=48125&edit=1
ID: 48125
Comment by: jonhattan at faita dot net
Reported by: scot at wilcoxon dot org
Summary: php-cli makes "less" command behave differently
Status: Bogus
Type: Bug
Package: Unknown/Other Function
Operating System: Linux Ubuntu 9.04
PHP Version: 5.2.9
Block user comment: N
New Comment:
It is a bug in ubuntu but does work for debian. A difference between
ubuntu and debian php-cli's is that ubuntu one is compiled with libedit
support. I don't know if this is the reason.
Previous Comments:
------------------------------------------------------------------------
[2009-05-05 00:07:10] scot at wilcoxon dot org
Documentation is needed of the option which makes php be compatible with
pipes. I suspect Readline is performing initialization of the terminal
despite no input being performed. The --interactive option probably
forces such behavior, but the man page did not indicate the opposite of
--interactive (--nointeractive did not change the problem).
------------------------------------------------------------------------
[2009-05-01 17:13:10] jani@php.net
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
------------------------------------------------------------------------
[2009-04-30 20:57:46] scot at wilcoxon dot org
Description:
------------
When php-cli is sending output to "less" it becomes necessary to press
ENTER after commands. It happens both locally and through SSH.
Reproduce code:
---------------
---
From manual page: features.commandline
---
php -r 'print_r(get_defined_constants());' | less
Expected result:
----------------
Output from command with ":" at bottom. Pressing "n" should start a new
page.
Actual result:
--------------
Output from command with ":" at bottom. Pressing "n" does nothing until
ENTER is pressed.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=48125&edit=1