[PATCH] stop using pwgen

Kevin Lyda kevin at ie.suberic.net
Sun Dec 18 17:13:42 CET 2016


On OS X:
% cat foo.sh
#!/bin/bash

read -r -N 32 p < <(tr -dc '[:graph:]' < /dev/random)
echo "$p"
% ./foo.sh
./foo.sh: line 3: read: -N: invalid option
read: usage: read [-ers] [-u fd] [-t timeout] [-p prompt] [-a array] [-n
nchars] [-d delim] [name ...]
% sed -i .bak s/-N/-n/ foo.sh
% ./foo.sh
tr: Illegal byte sequence
y*K
% which tr
/usr/bin/tr

So definitely need to move to -n for read, but the system tr on OS X is
unamused by this idea.

Kevin

On Sun, Dec 18, 2016 at 3:21 PM Jason A. Donenfeld <Jason at zx2c4.com> wrote:

> Hi list,
>
>
> https://git.zx2c4.com/password-store/commit/?id=f2a6078885c61040737c602a99ee75ba8009f17f
>
> Any criticism of this? I'll revert this if there's good reason to
> revert it. Otherwise, after thinking about this for only 40 seconds, I
> think it's an improvement.
>
> I've CC'd Corentin on this email, who's an expert at password generation.
>
> Jason
> _______________________________________________
> Password-Store mailing list
> Password-Store at lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/password-store
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20161218/4e47f41c/attachment.html>


More information about the Password-Store mailing list