🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #201753

Re: Correct syntax slrn NNTPSERVER?

#201753
From: Chris F.A. Johnson
Date: Wed, 11 Jul 2007 19:13
48 lines
2777 bytes
On 2007-07-11, cms wrote:
> On Jul 9, 3:31 pm, Adam Funk <a24...@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?
>
> export $NNTPSERVER

   No; it's:

export NNTPSERVER

> or
> export NNTPSERVER="my news server"

   That works in POSIX shells.

-- 
   Chris F.A. Johnson, author       <http://cfaj.freeshell.org/shell/>
   Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
   ===== My code in this post, if any, assumes the POSIX locale
   ===== and is released under the GNU General Public Licence
Technical Details
Message-ID: <cnmfm4-jh.ln1@206-248-139-163.dsl.teksavvy.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!news2.google.com!news.glorb.com!news.motzarella.org!motzarella.org!news
References: <slrnf93n56.fn3.nospam@ilium.invalid> <rcf9m4-g54.ln1@news.ducksburg.com> <1184154052.248059.200620@k79g2000hse.googlegroups.com>

Show Full Headers
Complete Article Headers
Message-ID: <cnmfm4-jh.ln1@206-248-139-163.dsl.teksavvy.com>
Subject: Re: Correct syntax slrn NNTPSERVER?
Date: Wed, 11 Jul 2007 15:13:16 -0400
From: "Chris F.A. Johnson" <cfajohnson@gmail.com>
References: <slrnf93n56.fn3.nospam@ilium.invalid> <rcf9m4-g54.ln1@news.ducksburg.com> <1184154052.248059.200620@k79g2000hse.googlegroups.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!news2.google.com!news.glorb.com!news.motzarella.org!motzarella.org!news
Newsgroups: news.software.readers,comp.unix.shell
Organization: A noiseless patient Spider
Lines: 47
Reply-To: cfajohnson@gmail.com
X-Trace: tomate.motzarella.org U2FsdGVkX1+MT5KnxO6FzWOjoflnhIOUVgf54BVaqj+/GQxkHYHOKajTpxFja0TMvg3gfPwkpX6SJjvqB81N5iboXhSHcAb4r+HKwHEacM0GuD/9erAKx5qHAZLRQAdu+rweJej77OpfiMwCxah9YA3vJv+E6Tnm
X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers
NNTP-Posting-Date: Wed, 11 Jul 2007 19:13:38 +0000 (UTC)
X-Auth-Sender: U2FsdGVkX19izgtJ07T420ooOaNFgCXiBq3qZDorR0cfa96fUOfu4dYsA2/5nGL0iwturaPI4nNlnkNjtL5zJg==
Cancel-Lock: sha1:UDZx18e8DszmJzbZmjLv/9lZVAY=
User-Agent: slrn/0.9.8.1 (Linux)