>$ PASS="1234567890" >$ echo $PASS | pass insert my_pass Your problem is that pass expects the password two times but you provide it only once. A solution would be to be `yes`: $ PASS="super-secure" $ yes "${PASS}" | pass insert my_pass I hope this helps. Regards Max Görner