#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2001
    Location
    Svizzera
    Posts
    69
    Rep Power
    14

    alias ksh --> bash


    i set up this alias in ksh:
    TPAS01='. ${DBA_BASE}/bin/oralin.ksh TPAS01'
    how to i convert this to bash-shell?
    alias alias TPAS01='. ${DBA_BASE}/bin/oralin.ksh TPAS01' doesn't work.

    thx a lot
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Posts
    137
    Rep Power
    0
    Setting up an alias in ksh is the same as in bash:

    alias TPAS01='. ${DBA_BASE}/bin/oralin.ksh TPAS01'

    Should work in both cases.
    I use both the bash and korn shell and in both shells I set up my aliasses the same way.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2001
    Location
    Svizzera
    Posts
    69
    Rep Power
    14

    it doesnt work


    im working with sun/solaris

    i think the ksh and bash-shell have defined varibles in diferent files, but where are/is this file?
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Posts
    137
    Rep Power
    0
    [QUOTE}i think the ksh and bash-shell have defined varibles in diferent files, but where are/is this file?[/QUOTE]

    Once a alias has been created it becomes part of your (global)environment. To my knowledge it isn't put into a file.

    Or do you want to know where they are defined in the first place? Like /etc/bash.bashrc, ~/.kshrc and so on?

IMN logo majestic logo threadwatch logo seochat tools logo