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

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

    <bug>
          <bug_id>7475</bug_id>
          
          <creation_ts>2005-07-28 05:49:56 +0400</creation_ts>
          <short_desc>&quot;source&quot; does not work in conjunction with &quot;process substitution&quot;</short_desc>
          <delta_ts>2006-01-10 01:42:54 +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>RESOLVED</bug_status>
          <resolution>LATER</resolution>
          
          
          <bug_file_loc>http://lists.gnu.org/archive/html/bug-bash/2006-01/msg00018.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="at@altlinux.org">at</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>27766</commentid>
    <comment_count>0</comment_count>
    <who name="at@altlinux.org">at</who>
    <bug_when>2005-07-28 05:49:57 +0400</bug_when>
    <thetext>Steps to Reproduce:
$ bash -ec &apos;cat &lt;(echo echo 1)&apos;
echo 1
$ bash -ec &apos;. &lt;(echo echo 1)&apos;
$ bash -exc &apos;. &lt;(echo echo 1)&apos;
+ . /dev/fd/63
$ ++ echo echo 1

Note that my command prompt is screwed in the last case, i.e. bash exited
before the process substitution was finished.



Expected Results:  
1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34335</commentid>
    <comment_count>1</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2005-12-31 02:17:38 +0300</bug_when>
    <thetext>Same happens with bash-3.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34490</commentid>
    <comment_count>2</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2006-01-07 01:11:47 +0300</bug_when>
    <thetext>Same with bash-3.1.1.
Here is an explanation:

$ strace -e trace=file,desc bash -ec &apos;. &lt;(echo echo 1)&apos;
[...]
stat64(&quot;/dev/fd/63&quot;, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
open(&quot;/dev/fd/63&quot;, O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
read(3, &quot;&quot;, 0)                          = 0
close(3)                                = 0
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34580</commentid>
    <comment_count>3</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2006-01-10 01:42:52 +0300</bug_when>
    <thetext>From Chet Ramey answer:
&quot;The bash source builtin only works with regular files.
This is a limitation that will someday be lifted.&quot;

http://lists.gnu.org/archive/html/bug-bash/2006-01/msg00018.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>