<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/77984>77984</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            When dummy argument "wait" of intrinsic "execute_command_line" is not present, it's treated as ".false."
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          psteinfeld
      </td>
    </tr>
</table>

<pre>
    Here's a program that shows the problem:
```
program bug
  call inner("echo hello")
contains
  subroutine inner(cmd, wait, exitstatarg, cmdstatarg, cmdmsgarg)
    character(10) :: cmd
    logical, optional :: wait
    integer, optional :: exitstatarg, cmdstatarg
 character(128), optional :: cmdmsgarg
    integer :: localvar
    call execute_command_line(cmd, wait, exitstatarg, localvar, cmdmsgarg)
  end subroutine
end
```
When I compile and executes this program, it behaves as if the `wait` argument has the value `.false.`.  It's supposed to act as if the value is `.true.`.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyEU1FvozwQ_DXmxWpEFkjCAw_9viq6_oJ7rBZ7Az4ZG9lL2v77k01p2rtWJ0Uiu8yMd8cDxmgGR9SJ5j_RPBS48OhDN0cm4y5kddF7_dr9oEACjlGinIMfAk6SR2QZR_8cJY-U2r2lSVT3onwQ5b04lG-_XG6sfhnWhpQKrZXGOQoCTgKA1OjlSNZ6ASCgXXHKO0bj4saKSx_8wsbRO1dNWsD_8hkNpye9GI6MjGFIpZr052qKQy7aTVJKNWJAxVltXwpoZdqjuk_wG8r6wSi0ScbPbLxDu-Hy2e9A45iGJPY38PvhVvanSZIt7Vcqty3-PHNDWK_QXjF82DHZTS-kFqYn5acJnX6yxtE_HXzX-sY_cvrDtaxdcvrLHPwcyclHqfw0G0sSnd5mSjEycYtXOsuw7GnEK0WJUZpLzpk4lHnMQykxDMtEjuWIawavaJeM2F3QRtqlf1I-ck5uXObZR9KSvUTFHyRXmomZyWFZiYXuKt1WLRbU7Y9lU7Z1Bcdi7PoKe0UnVTc19Seoy_0eLro5qEMPVDV9YToo1zbs96f6uGsR4KTqUl8a2vctibqkCY3dWXuddj4MhYlxoe54bE91YbEnG_MHCeDoWeaX6ZtoHorQJc5dvwxR1KU1keNNhQ1b6rLFepmm15tDAmC9XJD-krISjItGpf7XkYDkh_Ms50CRHK_3kY3kQMikk4ECYLMaoFiC7UbmOaYMwlnAeTA8Lv1O-UnAOY359ribg_9FigWc83JRwDkv_zsAAP__baJw2A">