Article View: news.software.readers
Article #201626Re: Correct syntax slrn NNTPSERVER?
From: Frank Slootweg
Date: Mon, 09 Jul 2007 15:31
Date: Mon, 09 Jul 2007 15:31
40 lines
2528 bytes
2528 bytes
Adam Funk <a24061@ducksburg.com> wrote: > On 2007-07-09, andrew wrote: > > > I ignored some excellent advice on this group a month ago that > > concerned setting the NNTPSERVER variable for slrn. I have come back > > with my tail between my legs and a question: > > > > I added the following to my ~/.bashrc file: > > [1] > > NNTPSERVER='my news server' && export NNTPSERVER > > > > and slrn was perfectly happy with this. But I have substituted the > > following line which also works with no problem, as reccommended by > > this NG: > > [2] > > export NNTPSERVER=my news server > > > > Which is the most correct syntax? The first example is in the > > documentation for slrn but both work. I am a little puzzled :-) > > In bash, they both work and have the same result. > > I suspect that in some other sh-like shells, [1] works but [2] > doesn't. > > Perhaps someone in comp.unix.shell can confirm or correct this? Is "someone in news.software.readers" c.q. "someone from comp.sys.hp.hpux" OK as well? :-) More specifically, [1] works in any *Bourne*(-like) shell. I.e. it does not matter how the shell is *called* (i.e. "sh"), but what it *is*. For example on most modern systems, "sh" will be a *POSIX* shell, which is a Bourne/Korn superset and also accepts [2]. So basically the "documentation for slrn"/[1] is *correct* and [2] will work in some silly shell used on a popular toy OS! :-)
Technical Details
Message-ID:
<469254ca$0$61658$dbd43001@news.wanadoo.nl>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.unix.shell.mbox.zip!g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!feeder.news-service.com!news2.euro.net!postnews2.euro.net!news.wanadoo.nl!not-for-mailReferences:
<slrnf93n56.fn3.nospam@ilium.invalid> <rcf9m4-g54.ln1@news.ducksburg.com>Show Full Headers
Complete Article Headers
Message-ID: <469254ca$0$61658$dbd43001@news.wanadoo.nl>
Subject: Re: Correct syntax slrn NNTPSERVER?
Date: Mon, 09 Jul 2007 15:31:22 +0000
From: Frank Slootweg <this@ddress.is.invalid>
References: <slrnf93n56.fn3.nospam@ilium.invalid> <rcf9m4-g54.ln1@news.ducksburg.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.unix.shell.mbox.zip!g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!feeder.news-service.com!news2.euro.net!postnews2.euro.net!news.wanadoo.nl!not-for-mail
Newsgroups: news.software.readers,comp.unix.shell
Organization: NOYB
User-Agent: tin/1.6.2-20030910 ("Pabbay") (UNIX) (CYGWIN_NT-5.1/1.5.22(0.156/4/2) (i686)) Hamster/2.0.2.2
Lines: 39
NNTP-Posting-Date: 09 Jul 2007 15:31:22 GMT
NNTP-Posting-Host: cd44074f3.cable.wanadoo.nl
X-Trace: 1183995082 dr2.euro.net 61658 212.64.116.243:63279
X-Complaints-To: abuse@wanadoo.nl