🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
7 messages
7 total messages Started by Jim Seymour Mon, 20 Jan 1997 00:00
INN 1.5.1 "pgpverify" - broken?
#14227
Author: Jim Seymour
Date: Mon, 20 Jan 1997 00:00
45 lines
1921 bytes
I know nothing of perl, so please bear with me on the following...

There I was, going along merrily, following the README.pgp
instructions when:

    $ pgpverify </tmp/sample.control
    /^.*/)/: unmatched () in regexp at pgpverify line 23.
    $

Huh?  So I take a look at pgpverify and find...

    $0 =~ s(^.*/)();                # trim /path/to/prog to prog

Now that doesn't look to me like any kind of balanced regular
expression *I've* ever seen but, like I said, Jim don't know
perl.  So I take a look at the manual page.  Hmmm...  The
manual page for perl *seems* to indicate that perl's regex
syntax is pretty-much like all the other regex syntax I've
seen before.  So I change the offending line to read:

    $0 =~ s/^.*\///;                # trim /path/to/prog to prog

And it's fixed!

What's up?  Could it be because I've got a really old version of
perl?  Perl -v reports:
 
    This is perl, version 4.0
     
    $RCSfile: perl.c,v $$Revision: 4.0.1.6 $$Date: 91/11/11 16:38:45 $
    Patch level: 19
     
    Copyright (c) 1989, 1990, 1991, Larry Wall


Regards,
Jim
-- 
Jim Seymour                  | I'm posting from a new newsfeed and
jimsun!jseymour@medar.com    | newsreader installation.  Please bear
                             | with me while I work the bugs out.
                             | 

Re: INN 1.5.1 "pgpverify" - broken?
#14299
Author: Fu Bar
Date: Tue, 21 Jan 1997 00:00
24 lines
1412 bytes
On 20 Jan 1997, Jim Seymour wrote:

> Huh?  So I take a look at pgpverify and find...
> 
>     $0 =~ s(^.*/)();                # trim /path/to/prog to prog

I thought I knew perl...but that looks wrong to me, and according to perl
5.003, it is totally valid and functional.

> What's up?  Could it be because I've got a really old version of
> perl?  Perl -v reports:
>  
>     This is perl, version 4.0

That's most likely the problem.  Time to upgrade.

------------------------------------------------------------------
 Jon Lewis <jlewis@fdt.net>  |  Unsolicited commercial e-mail will
 Network Administrator       |  be proof-read for $199/hr.
________Finger jlewis@inorganic5.fdt.net for PGP public key_______


Re: INN 1.5.1 "pgpverify" - broken?
#14302
Author: James Brister
Date: Tue, 21 Jan 1997 00:00
16 lines
1041 bytes
jseymour@jimsun.medar.com (Jim Seymour) writes:

> Huh?  So I take a look at pgpverify and find...
> 
>     $0 =~ s(^.*/)();                # trim /path/to/prog to prog

This is quite legal, but you need a more up-to-date version of perl than
what you have. You should get (at least) 4.0 pl 36.

James
-- 
James Brister                                            brister@vix.com
Internet Software Consortium    http://www.isc.org/isc   inn@isc.org 

Re: INN 1.5.1 "pgpverify" - broken?
#14309
Author: Terje Bless
Date: Tue, 21 Jan 1997 00:00
20 lines
1207 bytes
In article <yy3680rfex5.fsf@velo.pp.vix.com>, James Brister
<brister@vix.com> wrote:

>jseymour@jimsun.medar.com (Jim Seymour) writes:
>
>> Huh?  So I take a look at pgpverify and find...
>> 
>>     $0 =~ s(^.*/)();                # trim /path/to/prog to prog
>
>This is quite legal, but you need a more up-to-date version of perl than
>what you have. You should get (at least) 4.0 pl 36.

No. You should get at least 5.003. 4.036 is over two years old.

-- 
Party? Party, lord? Yes, lord. Right away, lord.
        - Beopunk Cyberwulf

Re: INN 1.5.1 "pgpverify" - broken?
#14311
Author: bill davidsen
Date: Wed, 22 Jan 1997 00:00
108 lines
2322 bytes
In article <5c19ls$jk2$1@jimsun.uucp>,
Jim Seymour <jimsun!jseymour@medar.com> wrote:
| I know nothing of perl, so please bear with me on the following...
| 
| There I was, going along merrily, following the README.pgp
| instructions when:
| 
|     $ pgpverify </tmp/sample.control
|     /^.*/)/: unmatched () in regexp at pgpverify line 23.
|     $
| 
| Huh?  So I take a look at pgpverify and find...
| 
|     $0 =~ s(^.*/)();                # trim /path/to/prog to prog
| 
| Now that doesn't look to me like any kind of balanced regular
| expression *I've* ever seen but, like I said, Jim don't know
| perl.  So I take a look at the manual page.  Hmmm...  The
| manual page for perl *seems* to indicate that perl's regex
| syntax is pretty-much like all the other regex syntax I've
| seen before.  So I change the offending line to read:
| 
|     $0 =~ s/^.*\///;                # trim /path/to/prog to prog
| 
| And it's fixed!

It was written by someone who has learned to write tricky code by
not how to write readable code. Actually, since even old versions
allow delimiters other then / with the s operator, you could write
something like s@.*/@@ and avoid any visual confusion with the
escaped / as a delimiter.

I have no idea why this "feature" was added in v5, but it certainly
buys no functionality here, and at the expense of using a feature
not documented in the most common reference.

Oh well, another "learning experience."
--
	-bill davidsen (davidsen@tmr.com)
"As a software development model, Anarchy does not scale well."
		-Dave Welch

































































Re: INN 1.5.1 "pgpverify" - broken?
#14321
Author: Curt Erickson
Date: Wed, 22 Jan 1997 00:00
51 lines
2086 bytes
There is version 5 of perl which may help.


Jim Seymour (jseymour@jimsun.medar.com) wrote:
: I know nothing of perl, so please bear with me on the following...

: There I was, going along merrily, following the README.pgp
: instructions when:

:     $ pgpverify </tmp/sample.control
:     /^.*/)/: unmatched () in regexp at pgpverify line 23.
:     $

: Huh?  So I take a look at pgpverify and find...

:     $0 =~ s(^.*/)();                # trim /path/to/prog to prog

: Now that doesn't look to me like any kind of balanced regular
: expression *I've* ever seen but, like I said, Jim don't know
: perl.  So I take a look at the manual page.  Hmmm...  The
: manual page for perl *seems* to indicate that perl's regex
: syntax is pretty-much like all the other regex syntax I've
: seen before.  So I change the offending line to read:

:     $0 =~ s/^.*\///;                # trim /path/to/prog to prog

: And it's fixed!

: What's up?  Could it be because I've got a really old version of
: perl?  Perl -v reports:
:  
:     This is perl, version 4.0
:      
:     $RCSfile: perl.c,v $$Revision: 4.0.1.6 $$Date: 91/11/11 16:38:45 $
:     Patch level: 19
:      
:     Copyright (c) 1989, 1990, 1991, Larry Wall


: Regards,
: Jim
: -- 
: Jim Seymour                  | I'm posting from a new newsfeed and
: jimsun!jseymour@medar.com    | newsreader installation.  Please bear
:                              | with me while I work the bugs out.
:                              | 

--

Re: INN 1.5.1 "pgpverify" - broken? - Solved!
#14361
Author: Jim Seymour
Date: Thu, 23 Jan 1997 00:00
24 lines
1473 bytes
In article <yy3680rfex5.fsf@velo.pp.vix.com>,
James Brister  <brister@vix.com> wrote:
>jseymour@jimsun.medar.com (Jim Seymour) writes:
>
>> Huh?  So I take a look at pgpverify and find...
>> 
>>     $0 =~ s(^.*/)();                # trim /path/to/prog to prog
>
>This is quite legal, but you need a more up-to-date version of perl than
>what you have. You should get (at least) 4.0 pl 36.

Picked-up 5.003 (what a build!), figuring that my guess about my
perl being too old was indeed the problem.  All's well now :-).

Thanks,
Jim "now gets nice news stats too!" Seymour
-- 
Jim Seymour                  | I'm posting from a new newsfeed and
jimsun!jseymour@medar.com    | newsreader installation.  Please bear
                             | with me while I work the bugs out.
                             | 

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