https://bugzilla.wikimedia.org/show_bug.cgi?id=27207
Summary: maintenance/sql.php should use Maintenance::readConsole to provide readline editing Product: MediaWiki Version: 1.18-svn Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: Normal Component: Maintenance scripts AssignedTo: wikibugs-l@lists.wikimedia.org ReportedBy: br...@pobox.com CC: innocentkil...@gmail.com sql.php seems to be optimized for running pre-prepared scripts, which is all well and good but it would be nice to get the GNU readline goodies when stdin is actually a terminal. The readline stuff is encapsulated in Maintenance::readConsole() which'll return a line at a time. Looks like sql.php sends stdin straight into Database::sourceStream() which does fgets() directly... that'll probably need to be extended to add a callback to override the actual reading, or else clever use of stream wrappers. :) -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l