Article View: news.software.nntp
Article #82774Re: news.daily and missing innfeed.conf
From: Russ Allbery
Date: Wed, 10 Feb 2010 21:50
Date: Wed, 10 Feb 2010 21:50
29 lines
2401 bytes
2401 bytes
Michael Grimm <trashcan@odo.in-berlin.de> writes:
> Yes. I downloaded the one you posted yesterday, and I double
> checked it again. Now, I modified your code as follows:
> ,----
> | echo "INNFEEDCONF= "$INNFEEDCONF
> | if [ -f ${INNFEEDCONF} ]; then
Missing quotes here. This should be:
if [ -f "${INNFEEDCONF}" ]; then
Otherwise, you end up running:
[ -f ]
which because it's not valid syntax for the -f file test some versions of
test in some shells will interpret as equivalent to:
[ -n "-f" ]
and return true. This is one of those weird corners of Bourne shell
syntax.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<87pr4c4v6m.fsf@windlord.stanford.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!kanaga.switch.ch!switch.ch!news.tele.dk!news.tele.dk!small.news.tele.dk!usenet.stanford.edu!news.stanford.edu!not-for-mailReferences:
<hkibmo$1ql2$3@de-l.enfer-du-nord.net> <hkjkms$56g$1@news.trigofacile.com> <hkjo4s$4ri$1@de-l.enfer-du-nord.net> <hkjtok$gd6$1@news.trigofacile.com> <hkka52$2f2o$1@de-l.enfer-du-nord.net> <hkmtlc$b1v$1@news.trigofacile.com> <hkn9ln$1r2h$1@de-l.enfer-du-nord.net> <hksf98$p99$1@news.trigofacile.com> <hkv2la$1icg$1@de-l.enfer-du-nord.net> <hkv56b$c82$1@news.trigofacile.com> <hkv610$1vmo$2@de-l.enfer-du-nord.net> <hkv7g7$eid$1@news.trigofacile.com> <hkv9g5$1vmo$5@de-l.enfer-du-nord.net>Show Full Headers
Complete Article Headers
Message-ID: <87pr4c4v6m.fsf@windlord.stanford.edu> Subject: Re: news.daily and missing innfeed.conf Date: Wed, 10 Feb 2010 13:50:25 -0800 From: Russ Allbery <rra@stanford.edu> References: <hkibmo$1ql2$3@de-l.enfer-du-nord.net> <hkjkms$56g$1@news.trigofacile.com> <hkjo4s$4ri$1@de-l.enfer-du-nord.net> <hkjtok$gd6$1@news.trigofacile.com> <hkka52$2f2o$1@de-l.enfer-du-nord.net> <hkmtlc$b1v$1@news.trigofacile.com> <hkn9ln$1r2h$1@de-l.enfer-du-nord.net> <hksf98$p99$1@news.trigofacile.com> <hkv2la$1icg$1@de-l.enfer-du-nord.net> <hkv56b$c82$1@news.trigofacile.com> <hkv610$1vmo$2@de-l.enfer-du-nord.net> <hkv7g7$eid$1@news.trigofacile.com> <hkv9g5$1vmo$5@de-l.enfer-du-nord.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!kanaga.switch.ch!switch.ch!news.tele.dk!news.tele.dk!small.news.tele.dk!usenet.stanford.edu!news.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 29 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.stanford.edu 1265838625 32582 171.67.225.134 (10 Feb 2010 X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:nQAa6u8DF4/yTY39vpV/6nlw16Y= X-Original-Bytes: 2225