🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
2 messages
2 total messages Started by Alan P. Barrett Sat, 20 Oct 1990 14:57
nn messing with the PATH
#1009
Author: Alan P. Barrett
Date: Sat, 20 Oct 1990 14:57
18 lines
1499 bytes
I usually have my path set to something like

	$HOME/bin:/bin:/usr/bin:.

When I run a '!'  command from inside nn, /bin is inserted at the front
of the path.  This is most annoying, because I deliberately keep
programs in my own bin directory that have the same names as programs in
the standard system directories, and I want my versions to be found in
preference to the standard versions.

Why does nn do this?  If some people think that this (IMHO obnoxious)
behaviour is correct, then please could we have a variable to control
whether or not the path gets changed.

--apb
Alan Barrett, Dept. of Electronic Eng., Univ. of Natal, Durban, South Africa
Internet: Barrett.UNDEE@f4.n494.z5.fidonet.org      UniNet-ZA: Barrett@UNDEE
Real Soon Now: Barrett@EE.UND.AC.ZA    PSI-Mail: PSI%(6550)13601353::BARRETT
Re: nn messing with the PATH
#1066
Author: Kim F. Storm
Date: Fri, 09 Nov 1990 17:47
26 lines
1426 bytes
barrett@undeed.uucp (Alan P. Barrett) writes:

>I usually have my path set to something like

>	$HOME/bin:/bin:/usr/bin:.

>When I run a '!'  command from inside nn, /bin is inserted at the front
>of the path.

I have a similar PATH, and I never have problems with nn's ! command.
The easiest way to see what the PATH is when you do '!' is to do:
	!echo $PATH

When I does that from nn, I get the expected result:
/ram:/u/storm/bin:/u/bin:/bin:...

But if I try the same from within vi, I get /bin prepended out of nowhere:
/bin:/ram:/u/storm/bin:/u/bin:/bin:...

So nn does the right thing (really it does nothing special with the PATH).
I would suspect your shell or exec system call to prepend /bin - nn doesn't.


-- 
Kim F. Storm  <storm@texas.dk>		No news is good news,
Texas Instruments A/S, Denmark		  but nn is better!
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads