🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
1 messages
1 total messages Started by J. Porter Clark Wed, 03 Jul 1991 14:46
How to tell if folder or newgroup
#1822
Author: J. Porter Clark
Date: Wed, 03 Jul 1991 14:46
22 lines
1498 bytes
I'm trying to set up my init file so that if I'm reading news from the
net I [un]set certain variables, but if I'm reading a folder, these
variables are set differently.  I could probably do something like
this:

	on [ -f $G ]
	  unset consolidated-menu
	  unset auto-select-subject
	end

(I haven't tried this, and I know there are errors in it.)  I'm not
sure this would work in all cases because I might be reading from the
net and there might just happen to be a file with the same name as the
newsgroup.  Also, I don't relish the thought of spawning a shell for
every newsgroup I enter, although I guess anyone who uses the "on [
test ]" command has to live with this.

It seems to me that there should be a way to do this already and I've
missed finding it in the manual.  If so, I humbly apologize.  If not,
here's YA enhancement request.
--
J. Porter Clark    jpc@avdms8.msfc.nasa.gov
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