This is a case where you want to use the shell (VSarkiss++ has told you why). The shell 'source' operator, '.' (dot) will let you read a file of bash statements into the current environment. See 'man bash'.
For instance, to regain much of your startup environment:
$ . ~/.bash_profile $
After Compline,
Zaxo
In reply to Re: Script to change $ENV{PATH}
by Zaxo
in thread Script to change $ENV{PATH}
by gri6507
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |