I am starting to code a few ideas of customization and tasks improvements on the office UNIX machine. My first script (see below) only contains ALIAS commands. But for some reason, when I execute it, the alias are not executed. I suspect it is because of the "#!/bin/ksh" not being recognized or something.
Unix machine is :
* Operating system ..: AIX (64Bit)
* Version / release .: 5.2
using Korn shell
My simple script is :
#!/bin/ksh
#set -x
#
#--------------------------------
# Alias Script
# created on : Aug-9, 2006
# created by :
# modified on:
#
# description : simply alias commands that I
# need for my work to make it easier
#---------------------------------------
alias goto_ae='cd /usr/local/Tivoli/custom/policy'
alias ll='ls -al'
>ls -al
-rwx------ 1 cacv548h tivadm 333 Aug 9 20:46 MyAlias.sh
When I execute it ("sh MyAlias.sh"). It ends without any messages nor problems. But when I execute either new alias, they are not recognized. If I define them on the command line the same way they are in my script, it works.
I tried accessing "man alias" but just about every UNIX commands aren't defined in this system's man.