On 17 Jul 2019, at 13:07, Jason A. Donenfeld wrote:

- graph == punct|alnum ? or is it missing things?

Having a hard time finding the POSIX definition, but GNU grep explicitly says that `[:graph:]` is equivalent to `[:alnum:]` plus `[:punct:]`: https://www.gnu.org/software/grep/manual/html_node/Character-Classes-and-Bracket-Expressions.html

Using `man ispunct` and `man isgraph` on macOS indicates that `[:print:]` is `[:graph:]` minus `[:alnum:]`.

A quick test confirms this:

% for ch in {0..127}; do printf "\\x$(printf '%02x' $ch)"; done|tr -cd '[:alnum:][:punct:]'; echo
        
!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~

% for ch in {0..127}; do printf "\\x$(printf '%02x' $ch)"; done|tr -cd '[:graph:]'; echo
        
!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~

- There was some mention in the thread about toybox having issues with those?

The `tr.c` included with BusyBox says it comes from Minix, so presumably everything borrowing from Minix would have the same issue.
_______________________________________________
Password-Store mailing list
[email protected]
https://lists.zx2c4.com/mailman/listinfo/password-store

Reply via email to