Quoting Jason A. Donenfeld (2016-02-05 22:21:49) > Merging this just for you. :-P > ... > So, instead use two processes! One for getting the first line and one > for removing the trailing line. Everybody loves more calls to fork(), > right?
Or use builtins:
pass show "$password" | read foo; prinf %s "$foo" | xdotool ...
(On my machine f runs about 40 times faster than g:
f () { local foo; read foo < "$1"; printf %s "$foo"; }
g () { head -n 1 "$1" | tr -d '\n\r'; }
)
signature.asc
Description: signature
_______________________________________________ Password-Store mailing list [email protected] http://lists.zx2c4.com/mailman/listinfo/password-store
