Article View: news.software.nn
Article #1822How to tell if folder or newgroup
From: J. Porter Clark
Date: Wed, 03 Jul 1991 14:46
Date: Wed, 03 Jul 1991 14:46
22 lines
1498 bytes
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
Technical Details
Message-ID:
<jpc.678552386@avdms8.msfc.nasa.gov>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!uunet!elroy.jpl.nasa.gov!freedom!avdms8!jpcShow Full Headers
Complete Article Headers
Message-ID: <jpc.678552386@avdms8.msfc.nasa.gov> Subject: How to tell if folder or newgroup Date: Wed, 03 Jul 1991 14:46:26 +0000 From: jpc@avdms8.msfc.nasa.gov (J. Porter Clark) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!uunet!elroy.jpl.nasa.gov!freedom!avdms8!jpc Newsgroups: news.software.nn Sender: root@freedom.msfc.nasa.gov (Super-User) Organization: NASA/MSFC Lines: 22