<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - systemd-run splits ARGS with spaces"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=67971">67971</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>systemd-run splits ARGS with spaces
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>redneb@gmx.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>general
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>systemd
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When I am issuing the following command
  systemd-run /bin/sh -c 'sleep 5'
it doesn't work as expected, instead it gives the following:

Aug 09 23:18:00 vmg systemd[1]: Starting /bin/sh -c sleep 5...
Aug 09 23:18:00 vmg systemd[1]: Started /bin/sh -c sleep 5.
Aug 09 23:18:00 vmg sh[537]: sleep: missing operand
Aug 09 23:18:00 vmg sh[537]: Try 'sleep --help' for more information.
Aug 09 23:18:00 vmg systemd[1]: run-536.service: main process exited,
code=exited, status=1/FAILURE
Aug 09 23:18:00 vmg systemd[1]: Unit run-536.service entered failed state.

It seems that systemd-run splits the 'sleep 5' and executes
  /bin/sh -c sleep 5
instead of
  /bin/sh -c 'sleep 5'

Is this the expected behavior?</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>