On Fri, 6 Jun 2003, Norman Gray wrote:
> On Fri, 6 Jun 2003, Peter W. Draper wrote:
>
> > The problems are obvious, we would either need a single directory
> > or a standard system for adding, removing & promoting packages on the PATH
> > (which is complicated as a system like this needs to be shell-specific
> > anyway).
>
> We (Glasgow) have a system like this for managing paths and stuff, so
> you can type `use idl55', and your PATH, MANPATH and LD_LIBRARY_PATH,
> and other things, are adjusted to use that software version, in a
> way which copes with both sh and csh, and which is easy to maintain.
> The script is fiddly rather than terribly hard, but I can assert that
> it does work perfectly satisfactorily.
That sounds potentially useful, if we decide to make the break, but just
for interest sake how is the "use" command defined for each shell. For
C-shell I'd guess this was an alias to a "source" command, but I've always
been stuck for how this might be done so it looks easy using "sh".
Cheers,
Peter.
|