On Tue, Dec 12, 2023 at 12:10:02AM +0900, Koichi Murase wrote:
> https://lists.gnu.org/archive/html/bug-bash/2019-06/threads.html#00039

Four years later,  i=$(( ${i%%[!+-]*}10#${i#[-+]} ))  is still
horrible.  Well, to be fair, five years since the original suggestion
<https://lists.gnu.org/archive/html/bug-bash/2018-07/msg00033.html>.

No offense to Pierre; this really is the best we've got.  It's just sad
that the best answer looks like *this*.

Reply via email to