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

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:
------- 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

Reply via email to