AIX Open Source

Expand all | Collapse all

bash -> /usr/bin/bash

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

    Posted 2 days ago
    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 23 hours ago
    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
    ------------------------------