🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #6254

Environment variable not expanded?

#6254
From: Hans Hoppe
Date: Thu, 11 Aug 1994 16:28
23 lines
2032 bytes
Can anyone help me with the following?

I want to set the value of nntp-cache-dir according to the value of
one of my environment variables ($TMPDIR). Normally, nn does variable
expansion, eg. if $TMPDIR is set to /tmp/hopha, the command
    :set backup-folder-path $(TMPDIR)
would be expanded to
    :set backup-folder-path /tmp/hopha
This also works from the init-file. But, if I try to set nntp-cache-dir
this way from the init-file (you can't set if from within nn), no
expansion of the environment variable is done. Of course, this leads
to trouble, because I don't have a directory named "$(TMPDIR)".
Is this a known bug, or am I overlooking something?
I am using nn 6.4.18 (with an NNTP server).

Your help would be greatly appreciated.

	C.U. - Hans
---------------------------------------------------------------------------
Hans Hoppe (hopha@sci.kun.nl) + "In the beginning the Universe was created.
Dep. of Biophysical Chemistry +  This has made a lot of people very angry
University of Nijmegen, NL    +  and been widely regarded as a bad move."
S-mail (home): NL 6524 KM 11  +                                    -D.Adams
Technical Details
Message-ID: <CuDps8.4K5@sci.kun.nl>
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!bga.com!news.sprintlink.net!hookup!swrinde!cs.utexas.edu!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!swidir.switch.ch!newsfeed.ACO.net!Austria.EU.net!EU.net!sun4nl!sci.kun.nl!hopha

Show Full Headers
Complete Article Headers
Message-ID: <CuDps8.4K5@sci.kun.nl>
Subject: Environment variable not expanded?
Date: Thu, 11 Aug 1994 16:28:55 GMT
From: hopha@sci.kun.nl (Hans Hoppe)
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!bga.com!news.sprintlink.net!hookup!swrinde!cs.utexas.edu!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!swidir.switch.ch!newsfeed.ACO.net!Austria.EU.net!EU.net!sun4nl!sci.kun.nl!hopha
Newsgroups: news.software.nn
Summary: With nntp-cache-dir, environment variables are not expanded.
Keywords: environment, nntp-cache-dir
Sender: news@sci.kun.nl (News owner)
Nntp-Posting-Host: studs.sci.kun.nl
Organization: University of Nijmegen, The Netherlands
X-Newsreader: NN version 6.4.19
Lines: 23