<div dir="ltr">This code provides a quick way to retrieve one password from the tree. <span id="result_box" class="" lang="en"><span class="">I</span> <span class="">would like to know</span> <span class="">is</span> <span class="">whether or not</span> <span class="">it is accepted</span><span class="">.</span></span></div><div class="gmail_extra"><br><div class="gmail_quote">2015-05-13 13:35 GMT+03:00 cyberxndr . <span dir="ltr"><<a href="mailto:cyberxndr@gmail.com" target="_blank">cyberxndr@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">diff --git a/password-store/src/password-store.sh b/password-store-feature/src/password-store.sh<br>index 47f7ffa..d5f6a59 100755<br>--- a/password-store/src/password-store.sh<br>+++ b/password-store-feature/src/password-store.sh<br>@@ -223,9 +223,10 @@ cmd_usage() {<br>                List passwords.<br>            $PROGRAM find pass-names...<br>                List passwords that match pass-names.<br>-           $PROGRAM [show] [--clip,-c] pass-name<br>+           $PROGRAM [show] [--clip,-c] [--exclusive,-e] pass-name<br>                Show existing password and optionally put it on the clipboard.<br>                If put on the clipboard, it will be cleared in $CLIP_TIME seconds.<br>+               Optionally, entry can contain * wildcard for quickly exclusive passwords.<br>            $PROGRAM grep search-string<br>                Search for password files containing search-string when decrypted.<br>            $PROGRAM insert [--echo,-e | --multiline,-m] [--force,-f] pass-name<br>@@ -294,12 +295,13 @@ cmd_init() {<br> }<br> <br> cmd_show() {<br>-       local opts clip=0<br>-       opts="$($GETOPT -o c -l clip -n "$PROGRAM" -- "$@")"<br>+       local opts clip=0 exclusive=0<br>+       opts="$($GETOPT -o ce -l clip,exclusive -n "$PROGRAM" -- "$@")"<br>        local err=$?<br>        eval set -- "$opts"<br>        while true; do case $1 in<br>                -c|--clip) clip=1; shift ;;<br>+               -e|--exclusive) exclusive=1; shift;;<br>                --) shift; break ;;<br>        esac done<br> <br>@@ -308,6 +310,13 @@ cmd_show() {<br>        local path="$1"<br>        local passfile="$PREFIX/$path.gpg"<br>        check_sneaky_paths "$path"<br>+       if [[ exclusive -eq 1 ]]; then<br>+               passfile=`find "$PREFIX" -path *$1*.gpg`<br>+               results=`echo $passfile | tr " " "\n" | wc -l`<br>+               if [[ $results -ne 1 ]]; then<br>+                       die "$results passwords founded (need 1)"<br>+               fi<br>+       fi<br>        if [[ -f $passfile ]]; then<br>                if [[ $clip -eq 0 ]]; then<br>                        $GPG -d "${GPG_OPTS[@]}" "$passfile" || exit $?<br><br></div>
</blockquote></div><br></div>