<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>32156</bug_id>
          
          <creation_ts>2016-05-30 20:32:05 +0300</creation_ts>
          <short_desc>bash --rpm-requires doesn&apos;t go into command substitution</short_desc>
          <delta_ts>2018-12-19 01:54:22 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>bash</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="placeholder@altlinux.org">placeholder</assigned_to>
          <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>placeholder</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>157118</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2016-05-30 20:32:05 +0300</bug_when>
    <thetext>bash-3.2.57-alt1 (the same is true for bash4 --rpm-requires)

Example:

$ echo &apos;foo | bar&apos; | bash --rpm-requires 
executable(/etc/bashrc)
executable(foo)
executable(bar)
$ echo &apos;(foo | bar)&apos; | bash --rpm-requires 
executable(/etc/bashrc)
executable(foo)
executable(bar)
$ echo &apos;echo $(foo | bar)&apos; | bash --rpm-requires 
executable(/etc/bashrc)
$ echo &apos;echo `foo | bar`&apos; | bash --rpm-requires 
executable(/etc/bashrc)
$ 

Expected output everywhere:

executable(foo)
executable(bar)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>176806</commentid>
    <comment_count>1</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2018-12-19 01:54:22 +0300</bug_when>
    <thetext>At least this behaviour is documented:
&quot;command substitutions, conditional expressions, and eval builtin are not parsed so some dependencies may be missed.&quot;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>