AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
Expand all | Collapse all

Root multiline command problem

  • 1.  Root multiline command problem

    Posted Fri August 10, 2012 01:27 PM

    Originally posted by: slojuggler


    Currently using a default ksh shell.

    When I log in as a non-administrative, regular user, I can type a really long command line with no problems.

    When I log in as a root user, long multiline commands keep wrapping and displaying a less than (<) symbol. There's no way I can see a full line.

    Trying the following on other Unices helps, but doesn't seem to help on AIX:
    1. set -o multiline
    ksh: multiline: bad option(s)

    Is there any way I can set the root environment so that I don't have this wraparound oddness?

    Thanks. -slojuggler


  • 2.  Re: Root multiline command problem

    Posted Wed January 27, 2016 10:43 PM

    Originally posted by: Kimba_the_White_Lion


    Heh, we got some real life XKCD in here: https://xkcd.com/979/

     

    Hello people from the future!  I came across the exact same issue as slojuggler, and found a solution.  There is an environment variable named "COLUMNS".  If you increase this variable to N, then the '<' symbol appears after N characters on the line.  Therefore, fix this issue by running the command (where the number 145 can be any number):

     

    export COLUMNS=145

     

    I hope you were able to figure out the issue slojuggler.  Otherwise, this was a long 4 years you were waiting for this answer.

     

    - Kimba