Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19806 - Bad perl syntax in epm
Summary: Bad perl syntax in epm
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Aron Griffis (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-22 21:09 UTC by Scott Hunt
Modified: 2003-04-30 22:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Hunt 2003-04-22 21:09:28 UTC
Line 603 of epm (ver. 0.8) reads:
  die 'One mode required, and only one mode allowed\n';

I believe that in order for the "\n" to work, it needs be in double quotes:
  die "One mode required, and only one mode allowed\n";


Reproducible: Always
Steps to Reproduce:
1. Run epm without any parameters
2.
3.

Actual Results:  
One mode required, and only one mode allowed\n at /usr/bin/epm line 603.


Expected Results:  
One mode required, and only one mode allowed\n at ./epm line 603.

Here's my diff:

--- ./epm       2003-04-22 20:11:55.000000000 -0600
+++ /usr/bin/epm        2003-04-22 20:09:41.000000000 -0600
@@ -600,7 +600,7 @@
     (defined $opt{'U'} || 0) +
     (defined $opt{'e'} || 0) +
     (defined $opt{'b'} || 0) != 1) {
-       die 'One mode required, and only one mode allowed\n';
+       die "One mode required, and only one mode allowed\n";
 }

 # Query mode
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-04-25 14:52:09 UTC
in 0.8.1 
line 610
Comment 2 Aron Griffis (RETIRED) gentoo-dev 2003-04-30 22:55:24 UTC
Fixed in 0.8.2, now in portage.  Thanks!