Results 1 to 5 of 5

Thread: command line breakage on php and cli quirkiness possibly readline related

  1. #1
    Join Date
    Sep 2008
    Location
    USA
    Beans
    120
    Distro
    Ubuntu 10.04 Lucid Lynx

    Exclamation command line breakage on php and cli quirkiness possibly readline related

    Questions for this Thread
    • which debian/ubuntu package the below issues is a bug for (necessary to file bugs now, via `apport-bug`)
    • If both of my below CLI issues are caused by that same issue


    CLI ISSUE #1: PHP output quirkiness
    I described some weird command-line behavior, that happens only on Ubuntu, in a video for this Drupal bug. It was decided that the problem is in Ubuntu, and not in PHP or in Drupal's script I filed against.

    ISSUE #1, Information:
    • comment #1288376226 (on php.net) about different compile methods of php-cli between Ubuntu and Debian seems to have spawned all kinds of threads and issues about mysql-cli and CTRL-R (reverse search history)
    • Ubuntu 10.04 seems to be the only one that has the problem. Between the drupal bug and the php.net bug (i think) its safe to say that this has been tested in arch linux, debian, OSX, and Ubuntu 10.04.


    SOLVED CLI ISSUE #2: ~/.inputrc not inherited in applications
    solved: http://ubuntuforums.org/showpost.php...24&postcount=5
    Applications with their own prompt seem to behave strangely in Ubuntu.
    Example applications: mysql's command line client and python's command line interpreter.
    Expected behavior:
    I have my output set to vi, in my ~/.inputrc file, among other things, this means my up/down history is binded to [j]/[k] keys. In Arch Linux, when I open either of the above mentioned apps, I can continue taking advantage of these nice bindings, just as I was a moment ago on the bash command line.
    Ubuntu Buggy behavior:
    Using the same ~/.inputrc file, when I open either of the above mentioned apps, nothing happens when I hate [j] or [k]

    ISSUE #2, Information:
    • if comment #1288376226 (on php.net) about different compile methods of php-cli is true, then it would explain why my ~/.inputrc (see ISSUE 1, above) config has problems in ubuntu.
    • Between the drupal bug and the php.net bug (i think) its safe to say that this has been tested in arch linux, debian, OSX, and Ubuntu 10.04. Ubuntu 10.04 is the only one that has the problem.


    Things that seem, or are related:


    Anyone have suggestions, more info I could gather, or generally which package I can post about to launchpad.net/ubuntu?
    Attached Files Attached Files
    Last edited by jzacsh; January 24th, 2011 at 04:22 PM. Reason: update to partial solution (issue #2)

  2. #2
    Join Date
    Sep 2008
    Location
    USA
    Beans
    120
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: command line breakage on php and cli quirkiness possibly readline related

    bump

  3. #3
    Join Date
    Sep 2008
    Location
    USA
    Beans
    120
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: command line breakage on php and cli quirkiness possibly readline related

    bump

    [edit]
    sorry this is a duplicate. ubuntuforums.org was taking over a minute to respond.
    Last edited by jzacsh; January 18th, 2011 at 10:20 PM.

  4. #4
    Join Date
    Sep 2008
    Location
    USA
    Beans
    120
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: command line breakage on php and cli quirkiness possibly readline related

    bump

  5. #5
    Join Date
    Sep 2008
    Location
    USA
    Beans
    120
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: command line breakage on php and cli quirkiness possibly readline related

    Turns out CLI ISSUE #2 is no longer an issue I simply did not have my ~/.inputrc file in place. However CLI ISSUE #1 is still being looked into by myself and some in #ubuntu-server. If you have any thoughts on what to try, please let me know.

    Current attempt:
    I will be recompiling `php` and then `less` in two separate tests in a VM to see if I can reproduce this from a distribution that does *not* inherently have the issue (eg.: archlinux).

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •