<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi,</p>
    <p>this way you allow to pass generate a .gpg file that pass will
      never be able to read again. <br>
    </p>
    <p><br>
    </p>
    <p>Instead of fixing the symptom I suggest to fix the cause: Change
      generate to not create .gpg files without a basename.<br>
    </p>
    <br>
    Cheers,<br>
    Lars<br>
    <br>
    <div class="moz-cite-prefix">On 12.09.2018 03:45, Marcelo Akira
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAOBeDqmgcRYq44obMqOkLUWOM2BbGZG=KBRY2o4Chf8UBUb0FQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">
            <div dir="ltr">
              <div dir="ltr">
                <div dir="ltr">
                  <div>Hi,</div>
                  <div><br>
                  </div>
                  <div>I accidentally created an unused file .gpg at
                    password-store path and since command 'pass list'
                    not worked anymore.<br>
                  </div>
                  <div><br>
                  </div>
                  <div>You can reproduce this bug with this commands:<br>
                  </div>
                  <div><br>
                  </div>
                  <div>$ pass generate ''</div>
                  <div>The generated password for  is:<br>
                    hE+>?(yHpYah2EIH\D2,j=z&t<br>
                  </div>
                  <div>$ ls -la ~/.password-store/.gpg<br>
                    -rw------- 1 akira akira 348 set 11 22:32
                    /home/akira/.password-store/.gpg<br>
                  </div>
                  <div>$ pass list</div>
                  <div>hE+>?(yHpYah2EIH\D2,j=z&t</div>
                  <div><br>
                  </div>
                  <div>To prevent this, pass could ignore the file
                    (~/.password-store/.gpg):</div>
                  <div><br>
                  </div>
                  <div>diff --git a/src/password-store.sh
                    b/src/password-store.sh<br>
                    index d89d455..3fac380 100755<br>
                    --- a/src/password-store.sh<br>
                    +++ b/src/password-store.sh<br>
                    @@ -363,7 +363,7 @@ cmd_show() {<br>
                            local path="$1"<br>
                            local passfile="$PREFIX/$path.gpg"<br>
                            check_sneaky_paths "$path"<br>
                    -       if [[ -f $passfile ]]; then<br>
                    +       if [[ -f $passfile ]] && ! [[ -z
                    $path ]]; then<br>
                                    if [[ $clip -eq 0 && $qrcode
                    -eq 0 ]]; then<br>
                                            pass="$($GPG -d
                    "${GPG_OPTS[@]}" "$passfile" | $BASE64)" || exit $?<br>
                                            echo "$pass" | $BASE64 -d<br>
                    <br>
                  </div>
                  <div>Thanks,<br>
                  </div>
                  <div>-- <br>
                    <div dir="ltr" class="gmail_signature">
                      <div dir="ltr">
                        <div>
                          <div dir="ltr">Marcelo Akira Inuzuka<br>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Password-Store mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Password-Store@lists.zx2c4.com">Password-Store@lists.zx2c4.com</a>
<a class="moz-txt-link-freetext" href="https://lists.zx2c4.com/mailman/listinfo/password-store">https://lists.zx2c4.com/mailman/listinfo/password-store</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>