Re: expr(1) diff 3 of 3, make it able to print result in different radixes

2011-01-16 Thread Christian Weisgerber
Benny Lofgren bl-li...@lofgren.biz wrote: - Since expr previously ignored switches altogether, strings starting with '-' will no longer be recognized as strings, but probably generate a usage: error message instead. This can be circumvented by the -- notation, and that particular form was

expr(1) diff 3 of 3, make it able to print result in different radixes

2011-01-14 Thread Benny Lofgren
Hi, Third change resubmit for review. Recap: + Makes it able to output calculation results in hex and octal. This is of course the reverse functionality to the previous. Works like this: skynet:/usr/src/bin/expr# expr -x 16383 3fff skynet:/usr/src/bin/expr# expr -o 16383

Re: expr(1) diff 3 of 3, make it able to print result in different radixes

2011-01-14 Thread Philip Guenther
On Fri, Jan 14, 2011 at 8:13 PM, Benny Lofgren bl-li...@lofgren.biz wrote: + Makes it able to output calculation results in hex and octal. This is of course the reverse functionality to the previous. Works like this: ... - And of course POSIX, this everlasting spectre? No problems from POSIX