Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Re; Just do this then ...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Re; Just do this then ...
Authored by: buc40 on Jul 31, '02 10:06:13AM

Why not just rehash then instead of su?

Will this work?

SA



[ Reply to This | # ]
Re; rehashing
Authored by: hayne on Jul 31, '02 01:39:37PM

rehashing updates the shell's list of executables.
It does not do anything with aliases.

The solution is relatively simple - you use an alias to perform multiple commands as I suggested earlier. (There is nothing that can be done in a shell script since what you are trying to change is the current shell's environment.)



[ Reply to This | # ]