Bug 4227 - cops perl script produces errors
Summary: cops perl script produces errors
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Steve Price
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1997-08-04 23:40 UTC by andrsn.stanford.edu
Modified: 1998-02-22 01:29 UTC (History)
0 users

See Also:


Attachments
file.diff (514 bytes, patch)
1997-08-04 23:40 UTC, andrsn.stanford.edu
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description andrsn.stanford.edu 1997-08-04 23:40:00 UTC
running the perl version of cops produces error
need: Can't open need and later -S: invalid option

Fix: This fix uses perl4 (in /usr/bin); the original perl script
looks for perl in /usr/local/bin.  If perl5 is used a few additional
changes are needed in the script; perl complains about precedence
in the following lines, where parens are needed around CONFIG, FILE1,
and FILE2 (roughly lines 86, 223, and 224, I think):

open CONFIG || die "can't open $CONFIG: $!";
    open FILE1 || die "can't open $FILE1: $!\n";
    open FILE2 || die "can't open $FILE2: $!\n";

For perl4:
How-To-Repeat: run perl version of cops from /cops/perl directory,
i.e., /usr/local/cops/perl/cops
Comment 1 Steve Price freebsd_committer freebsd_triage 1998-02-22 01:28:33 UTC
State Changed
From-To: open->closed

Patch added to make the perl version work.  Thanks!