AIX

 View Only
  • 1.  ksh93

    Posted Sat November 20, 2021 10:01 AM

    Hello all!

    I've been scripting with ksh93 for a quite some time (especially after reading the excellent "Learning the Korn Shell - 2nd Edition", by Bill Rosenblatt & Arnold Robbins, published by O'Reilly) and decided to also try it as my interactive shell.

    Out of the box it has some interesting features, like command retrieve with the arrow keys, history search and command/file name completion --much like Linux, perhaps a little better.

    Has anyone tried/adopted/rejected?


    Kind regards,

    F. Alejandro Osso



  • 2.  RE: ksh93

    Posted Sat November 20, 2021 11:31 AM
    On Sat, Nov 20, 2021 at 03:01:24PM +0000, F. Alejandro Osso via IBM Community wrote:
    > Out of the box it has some interesting features, like command retrieve with the arrow keys, history search and command/file name completion --much like Linux, perhaps a little better.

    I recommend to customers that they use ksh93 instead of installing
    bash for interactive users. It means the pandora's box of RPM packages
    is left closed.

    > Has anyone tried/adopted/rejected?

    There's a problem. IBM has said that only KSH is supported as the root
    shell. You can not change root or padmin away from KSH or you will
    have an unsupported system.

    https://www.ibm.com/support/pages/can-i-change-root-or-another-system-account-users-default-shell

    Having spoken to support on this matter before, opening a feature
    request (RFP?) to change AIX's root shell from KSH to KSH93 would be
    the best way to change this.

    ------------------------------------------------------------------
    Russell Adams Russell.Adams@AdamsSystems.nl
    Principal Consultant Adams Systems Consultancy
    http://adamssystems.nl/




  • 3.  RE: ksh93

    Posted Mon November 22, 2021 04:00 AM
    Hi Alejandro,

    I use ksh93 as an interactive shell on daily basis since years. There are a lot of useful features in ksh93 and it is really very good for scripting.

    But as Russel said - don't change root's default shell. You can still use ksh93 as root's interactive shell (I do usually sudo -i /bin/ksh93).

    Best regards
    Andrey Klyachkin

    ------------------------------
    Andrey Klyachkin

    https://www.power-devops.com
    ------------------------------