#!/bin/sh # vim: set sw=4 ts=4 sts=4 et : while IFS=' ' read -r cmd args; do case "${cmd}" in GETPIN) printf 'D %s\n' "$(cat "${PINENTRY_PASSWORD_FILE}")" ;; SETPROMPT|SETTITLE|SETDESC) echo OK ;; BYE) exit 0 ;; *) printf 'ERR Unknonw command\n' ;; esac done