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 <ja...@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@lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/password-store
>
_______________________________________________
Password-Store mailing list
Password-Store@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/password-store

Reply via email to