Bug 127203 - shell commands not working properly in specfiles
shell commands not working properly in specfiles
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: rpm (Show other bugs)
2
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
Mike McLean
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2004-07-03 19:12 EDT by Andrea Santilli
Modified: 2007-11-30 17:10 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-07-03 20:05:54 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Andrea Santilli 2004-07-03 19:12:57 EDT
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-03 20:05:54 EDT
%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.