Aliases normally go in a .kshrc file (or the equivalent for whatever shell
To have the ksh execute your .kshrc put “export ENV=$HOME/.kshrc” in your
To make “global” aliases what we do on our systems is have a /.kshrc and
~/.mykshrc for custom aliases i.e. “export ENV=/.kshrc” is in everyone’s
…profile. At the end of /.kshrc is:
if [ “$HOME” = “/” ]; then
if [ -f $HOME$FILE ]; then
For #2, $* (maybe)
“Edith Hand” <email@example.com> wrote in message
Can someone tell me out to set global aliases in QNX 4.25?
I tried putting them in /etc/systinit.1 - doesn’t work.
I tried putting them in a /.profile file - only works on login console,
but not in photon
Normally I put my aliases in a .bashrc, .cshrc, etc. Does sh have such
a configuration file? Any ideas how I can set these?
Secondary question: I have this alias on tcsh:
alias cd 'cd !; echo $cwd’
Any idea what the equivalent of ! is in sh?