<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <a class="moz-txt-link-rfc2396E" href="mailto:a@b:c$gpg-e-b-rMikedata.file">"a@b:c$ gpg -e -b -r Mike data.file"</a> produces the encrypted file
    data.file.sig with the detached signature of data.file<br>
    I don't think there's a oneliner for what you're trying to achieve<br>
    <br>
    gpg -er Mike data.file<br>
    gpg -b data.file.gpg<br>
    <br>
    <br>
    <div class="moz-cite-prefix">17.01.2021 00:56, Ayoub Misherghi via
      Gnupg-users пишет:<br>
    </div>
    <blockquote type="cite" cite="mid:392120fe-6bba-fafc-58d0-876a634ed569@gmail.com">
      
      <p>a@b:c$ gpg -e -b -r Mike data.file</p>
      <p><br>
      </p>
      <p>produced "data.file.sig" and no "data.file.gpg"</p>
      <p><br>
      </p>
      <p>Thanks,</p>
      <p><br>
      </p>
      <p>Ayoub<br>
      </p>
      <p><br>
      </p>
      <p><br>
      </p>
      <div class="moz-cite-prefix">On 1/16/2021 2:53 AM, Dmitry Gudkov
        wrote:<br>
      </div>
      <blockquote type="cite" cite="mid:PH0PR06MB7525066C3A1FBDB95CC209C4A6A60@PH0PR06MB7525.namprd06.prod.outlook.com">
        <meta content="text/html; charset=utf-8">
        <style id="bidiui-paragraph-margins" type="text/css">body p
        {margin-bottom:0cm;
        margin-top:0pt}</style>
        <div dir="auto">Just get rid of -s</div>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Jan 16, 2021 12:35, Ayoub
            Misherghi via Gnupg-users <a class="moz-txt-link-rfc2396E" href="mailto:gnupg-users@gnupg.org" moz-do-not-send="true"><gnupg-users@gnupg.org></a>
            wrote:<br type="attribution">
          </div>
        </div>
        <div>
          <p><br>
          </p>
          <p>The intention is to sign and encrypt "data.file" producing
            a detached signature file.</p>
          <p><br>
          </p>
          <p>a@b:c$ gpg -s -e -b -r Mike data.file</p>
          <p>gpg: conflicting commands</p>
          <p><br>
          </p>
          <p>Why is there a conflict? I do not want to produce an
            attached signature.<br>
          </p>
          <p><br>
          </p>
          <p>Ayoub<br>
          </p>
        </div>
      </blockquote>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Gnupg-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gnupg-users@gnupg.org">Gnupg-users@gnupg.org</a>
<a class="moz-txt-link-freetext" href="http://lists.gnupg.org/mailman/listinfo/gnupg-users">http://lists.gnupg.org/mailman/listinfo/gnupg-users</a></pre>
    </blockquote>
    <br>
  </body>
</html>