On Mon, 12 Dec 2005, J. Milgram wrote:

Thanks (and Alexey, and anyone else whose response I haven't seen yet).

The goal is to compute and set a bunch of environment variables for use by a program that will be launched from an interactive shell. The truly clean way to do it would be to fix said program so that it computes the variables itself and doesn't use environment variables as input. Or set it up to read a .rc file. But this is what I'm stuck with. Oh well.

So write a shell script to wrap around that program that computes the correct environment, and then launches the program. You can then alias the program name to the script in the interactive shell.

                        Alexey

Reply via email to