Thread View: news.software.nntp
5 messages
5 total messages
Started by Erland Sommarskog
Sat, 18 May 1996 00:00
Backslashes in control.ctl
Author: Erland Sommarskog
Date: Sat, 18 May 1996 00:00
Date: Sat, 18 May 1996 00:00
37 lines
1919 bytes
1919 bytes
This is probably a stupid question, because I am overlooking something
obvious, but here it goes.
In the README for the PGP pacth to INN, Dave Lawrence suggests the following
control.ctl excerpt:
newgroup:tale@uunet.uu.net:\
comp.*|humanities.*|misc.*|news.*|rec.*|sci.*|soc.*|talk.*:\
verify-news.announce.newgroups
rmgroup:tale@uunet.uu.net:\
comp.*|humanities.*|misc.*|news.*|rec.*|sci.*|soc.*|talk.*:\
verify-news.announce.newgroups
But as I understand the place where you read control.ctl is in parsecontrol,
on the following line:
${EGREP} "^(${PROG}|all):" <${CTLFILE} >${TEMP}
But not even GNU egrep 2.0 - which is what ${EGREP} translates to at
this place, takes the backslash in regard so all that gets into the
temp file is the first line, and thus not the group pattern.
But I would not expect Dave Lawrence to put something in his README
without testing it, and if it was such an obvious mistake several
people would have pointed it out to him by now and he would have
corrected it. As I know his mailbox is under constant overload, I
rather ask here, without bothering by something as trivial as this.
Because I am overlooking something, am I not?
--
Erland Sommarskog, Stockholm, sommar@algonet.se
F=F6r =F6vrigt anser jag att QP b=F6r f=F6rst=F6ras.
B=65sid=65s, I think QP should b=65 d=65stroy=65d.
Re: Backslashes in control.ctl
Author: Dougal Campbell
Date: Sat, 18 May 1996 00:00
Date: Sat, 18 May 1996 00:00
49 lines
2714 bytes
2714 bytes
Erland Sommarskog (sommar@algonet.se) proclaimed:
> This is probably a stupid question, because I am overlooking something
> obvious, but here it goes.
> In the README for the PGP pacth to INN, Dave Lawrence suggests the following
> control.ctl excerpt:
> newgroup:tale@uunet.uu.net:\
> comp.*|humanities.*|misc.*|news.*|rec.*|sci.*|soc.*|talk.*:\
> verify-news.announce.newgroups
> rmgroup:tale@uunet.uu.net:\
> comp.*|humanities.*|misc.*|news.*|rec.*|sci.*|soc.*|talk.*:\
> verify-news.announce.newgroups
> But as I understand the place where you read control.ctl is in parsecontrol,
> on the following line:
> ${EGREP} "^(${PROG}|all):" <${CTLFILE} >${TEMP}
> But not even GNU egrep 2.0 - which is what ${EGREP} translates to at
> this place, takes the backslash in regard so all that gets into the
> temp file is the first line, and thus not the group pattern.
> But I would not expect Dave Lawrence to put something in his README
> without testing it, and if it was such an obvious mistake several
> people would have pointed it out to him by now and he would have
> corrected it. As I know his mailbox is under constant overload, I
> rather ask here, without bothering by something as trivial as this.
> Because I am overlooking something, am I not?
The trick is that the shell interprets th backslashes before your
${EGREP} ever gets a chance to see them. When the shell sees a
backslash at the end of a line, it interprets it as a sort of
line-continuation token, and combines the current line with the next
one.
So, in the example above, ${EGRP} would only read two lines: one
starting with "newgroup" and another starting with "rmgroup". Using
backslashes as continuation markers is just a tool for enhancing the
human-readability of the files.
--
Dougal Campbell | "Quick to judge, quick to anger. | Rush
System Administrator | Slow to understand. | "Witch Hunt"
interQuest / Hsv, AL | Ignorance and predjudice | Moving Pictures
dougal@iquest.com | And fear go hand in hand." | 1981
Re: Backslashes in control.ctl
Author: Arjan de Vet
Date: Sat, 18 May 1996 00:00
Date: Sat, 18 May 1996 00:00
22 lines
1201 bytes
1201 bytes
In article <4nl0iu$5cg@epimetheus.algonet.se>, Erland Sommarskog <sommar@algonet.se> wrote: >In the README for the PGP pacth to INN, Dave Lawrence suggests the following >control.ctl excerpt: > > newgroup:tale@uunet.uu.net:\ > comp.*|humanities.*|misc.*|news.*|rec.*|sci.*|soc.*|talk.*:\ > verify-news.announce.newgroups [...] >Because I am overlooking something, am I not? I experienced the same, so the example seems to be wrong. Putting it all on one single line fixed it for me. This was the only problem I encountered when installing pgpverify, the rest worked without any problem. Arjan
Re: Backslashes in control.ctl
Author: Per Hedeland
Date: Sun, 19 May 1996 00:00
Date: Sun, 19 May 1996 00:00
19 lines
1290 bytes
1290 bytes
In article <4nllr8$khl@polo.iquest.com> dougal@vespucci.iquest.com (Dougal Campbell) writes:
>Erland Sommarskog (sommar@algonet.se) proclaimed:
>[snip]
>> ${EGREP} "^(${PROG}|all):" <${CTLFILE} >${TEMP}
>[snip]
>The trick is that the shell interprets th backslashes before your
>${EGREP} ever gets a chance to see them. When the shell sees a
>backslash at the end of a line, it interprets it as a sort of
>line-continuation token, and combines the current line with the next
>one.
Nonsense, the shell never gets to see the ${CTLFILE} in the above
expression. (Sorry, don't know the answer to the original question.)
--Per Hedeland
per@erix.ericsson.se
Re: Backslashes in control.ctl
Author: Howard Goldstein
Date: Mon, 20 May 1996 00:00
Date: Mon, 20 May 1996 00:00
15 lines
1036 bytes
1036 bytes
On 18 May 1996 23:51:34 +0200, Arjan de Vet <devet@adv.IAEhv.nl> wrote: : : I experienced the same, so the example seems to be wrong. Putting it all : on one single line fixed it for me. This was the only problem I : encountered when installing pgpverify, the rest worked without any problem. Same problem here, same solution -- Howard Goldstein <hg@n2wx.ampr.org> http://www.tapr.org/~n2wx/
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads