#31796 [Opn->Ver]: readline() completes filesystem
| From: | sniper@php.net | Date: | Thu, 03 Feb 2005 04:09:16 +0000 |
| Subject: | #31796 [Opn->Ver]: readline() completes filesystem | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-73362@lists.php.net to get a copy of this message | ||
ID: 31796
Updated by: sniper@php.net
Reported By: david at acz dot org
-Status: Open
+Status: Verified
Bug Type: Readline related
-Operating System: UNIX
+Operating System: *
-PHP Version: 4.3.10
+PHP Version: 4CVS, 5CVS (2005-02-03)
Previous Comments:
------------------------------------------------------------------------
[2005-02-01 21:12:43] david at acz dot org
Description:
------------
The readline() function always tab completes the filesystem even if a
custom completion function is used. This behavior is undocumented and
undesirable in some applications.
Reproduce code:
---------------
<?
readline_completion_function("complete");
readline("> ");
function complete($line, $pos, $cursor)
{
return array();
}
?>
Expected result:
----------------
I expect nothing to happen when I press tab.
Actual result:
--------------
The filesystem is completed as with bash.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31796&edit=1