Hello,
I have a ksh script that executes a text file:
...
exec file.txt
inside this file.txt, it defines variables and aliases:
...
export FILE=/bin/ls
alias ls='ls -l'
the problem is that after the 'exec' command is finished, the aliases are not well known to other sh commands.
where is the problem? How to keep the aliases variables to the rest of the commands of the script?
I have a ksh script that executes a text file:
...
exec file.txt
inside this file.txt, it defines variables and aliases:
...
export FILE=/bin/ls
alias ls='ls -l'
the problem is that after the 'exec' command is finished, the aliases are not well known to other sh commands.
where is the problem? How to keep the aliases variables to the rest of the commands of the script?