AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
  • 1.  bash -> /usr/bin/bash

    Posted Wed January 13, 2021 12:30 AM
    Hello, I'm new with bash stuff and i've setup a user with the following initial program /usr/bin/bash and i'm getting following info upon login...

    -bash: typeset: -R: invalid option
    typeset: usage: typeset [-aAfFgilrtux] [-p] name[=value] ...
    -bash: print: command not found
    -bash: typeset: -L: invalid option
    typeset: usage: typeset [-aAfFgilrtux] [-p] name[=value] ...
    -bash: print: command not found
    -bash: typeset: -Z: invalid option
    typeset: usage: typeset [-aAfFgilrtux] [-p] name[=value] ...
    -bash: alias: -x: invalid option
    alias: usage: alias [-p] [name[=value] ... ]
    -bash: alias: -x: invalid option
    alias: usage: alias [-p] [name[=value] ... ]

    Any ideas on how to resolve this issue?

    Thanks.

    ------------------------------
    kan
    ------------------------------


  • 2.  RE: bash -> /usr/bin/bash

    Posted Thu January 14, 2021 07:03 PM
    Hi Kan,

    I am not an AIX administrator, but I think in the profile or resource scripts used while logging in there are typeset and alias calls for the Korn Shell(?). typeset and alias are shell builtins and the bash versions differ in their options from the ksh ones.

    To get more information you can use the builtin in help of bash. On the bash prompt type "help typeset" or "help alias" to get more information directly related to the bash versions of these commands.

    If these calls are in the global resource files used by all users and not in the personal ones of the user alone, I do not know, what the AIX way is to solve this. If they are in the personal files alone, you can simply change these files to work with bash.

    Chris

    ------------------------------
    Christian Brüssow
    Teamlead and Principal Software Engineer
    Cenit AG
    Stuttgart
    ------------------------------