Add support for using bash's built-in readline or equivalent for single-line input...
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 5 Aug 2009 02:57:11 +0000 (02:57 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 5 Aug 2009 02:57:11 +0000 (02:57 +0000)
commit9bd17966b1ad8e8aa5645e927434004490b0c690
treebf26e1a7017061223fa209fd977d4508f76d43f7
parentab8c557b78f494a55d7659013fee040b32f77d76
Add support for using bash's built-in readline or equivalent for single-line input editing in eval.php etc, if the PHP readline extension is not available.

This is handy when running on Mac OS X with Apple's default PHP installation...
If bash cannot be found, will fall back to the fgets() we did before -- a horrible realm in which arrow keys and backspace don't work.

Note that this isn't quite as good as full readline support, since we don't get to retain entry history.
install-utils.inc