Bug 127203 - shell commands not working properly in specfiles
Summary: shell commands not working properly in specfiles
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 2
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-07-03 23:12 UTC by Andrea Santilli
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2004-07-04 00:05:54 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Andrea Santilli 2004-07-03 23:12:57 UTC
Description of problem:
shell commands seem to not work properly in specfiles.

In bash if you do:
echo 1.4.2 | sed 's/.*\.//'
it will correctly reply:
2

but in a specfile, if you do:
%define minor %(echo 1.4.2 | sed 's/.*\.//')
it returns an empty string.

Version-Release number of selected component (if applicable):
4.3.1

How reproducible:
Always

Steps to Reproduce:
1. write a specfile
2. run a shell command containing an operation on regular expressions
while defining a macro
3. it returns the wrong value
  
Actual results:
on some operations it returns the wrong value

Expected results:
to work properly

Additional info:

Comment 1 Jeff Johnson 2004-07-04 00:05:54 UTC
%define minor %(echo 1.4.2 | sed 's/.*\\.//')


Note You need to log in before you can comment on or make changes to this bug.