[13994] in Athena Bugs

home help back first fref pref prev next nref lref last post

Re: a bug in add, i think

daemon@ATHENA.MIT.EDU (cfields@MIT.EDU)
Tue Nov 14 14:34:01 1995

From: cfields@MIT.EDU
Date: Tue, 14 Nov 95 14:33:56 -0500
To: lopes@MIT.EDU
Cc: bugs@MIT.EDU

Thanks for your bug report...

> if you add -f a locker, it will only REALLY add it to the front of your 
> path if it has the old bindirs....and if it has the new archdirs, it 
> will just add it to the end of your path

I think you have misdiagnosed the problem you are seeing. add -f works
regardless of which bindir convention the locker is using. However, if
when you "add -f locker," that locker was already in your path, add
does nothing. Which is to say if the locker was already at the end of
your path, add does not then move it to the front of your path for
you.

This was a design decision I made at the time. Having already taken a
ten line alias and converted it into a 310 line shell script, I felt I
had increased the complexity more than enough at the time... And since
I was adding a feature (well, several) add hadn't had before, I
figured the functionality would be more than adequate.

But it might be time to revisit the issue... Hope the explanation of
the problem you are seeing helps.

Craig Fields
I/S DCNS Development
cfields@mit.edu


home help back first fref pref prev next nref lref last post