summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2014-04-27 14:17:56 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2014-04-27 14:17:56 +0200
commite3ee459005940806916c5f3d2530d3cf15966e1b (patch)
tree41fcda103ec5f4b3ae8d489b20f7ca718ed2ddb2 /src
parent58f972ef71506d1ba83970196bcc2a71a2b11889 (diff)
downloadpass-e3ee459005940806916c5f3d2530d3cf15966e1b.tar.gz
pass-e3ee459005940806916c5f3d2530d3cf15966e1b.tar.bz2
pass-e3ee459005940806916c5f3d2530d3cf15966e1b.zip
base64: better justification
Diffstat (limited to '')
-rwxr-xr-xsrc/password-store.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/password-store.sh b/src/password-store.sh
index d7f5eb0..6c89c2f 100755
--- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -136,9 +136,9 @@ check_sneaky_paths() {
#
clip() {
- # This base64 business is a disgusting hack to deal with newline inconsistancies
- # in shell. There must be a better way to deal with this, but because I'm a dolt,
- # we're going with this for now.
+ # This base64 business is because bash cannot store binary data in a shell
+ # variable. Specifically, it cannot store nulls nor (non-trivally) store
+ # trailing new lines.
local sleep_argv0="password store sleep on display $DISPLAY"
pkill -f "^$sleep_argv0" 2>/dev/null && sleep 0.5
son A. Donenfeld2-3/+3 2014-05-08usage: tab to spacesJason A. Donenfeld1-1/+1 2014-05-08generate: use nice ansi colors instead.Jason A. Donenfeld1-3/+2 2014-05-08zsh: posix compatible sed fix for zsh-completionJason A. Donenfeld1-1/+1 2014-05-07Implement interactive init functionSvend Sorensen1-0/+8 2014-05-07Implement interactive rename functionSvend Sorensen1-0/+7 2014-05-07Reorder interactive function to match order of helper functionsSvend Sorensen1-13/+13 2014-05-07Make edit helper function name consistent with other helpersSvend Sorensen1-1/+1 2014-05-07Factor out password completing-read functionSvend Sorensen1-4/+8 2014-05-07Add dash to Package-RequiresSvend Sorensen1-1/+1 2014-05-06Force sane sort order.Jason A. Donenfeld1-2/+2 2014-05-06generate: add --in-place optionJason A. Donenfeld4-9/+33