Exclamation mark when using character classes

2021-08-20 Thread hancooper via Bug reports for the GNU Bourne Again SHell
I am using EPOCHREALTIME and then computing the corresponding human readable form, that can handle changes in locale now=$EPOCHREALTIME printf -v second '%(%S)T.%s' "${now%[^[:digit:]]*}" "${now#*[^[:digit:]]}" printf -v minute '%(%M)T' "${now%[^[:digit:]]*}" printf -v hour '%(%H)T'

EPOCHREALTIME

2021-08-19 Thread hancooper via Bug reports for the GNU Bourne Again SHell
Have been using $EPOCHREALTIME but can see that the output is as follows. 1629376497,853634 The utilisation of tho comma `,` is very inconvenient for those who want to do time computations. A change towards a period `.` would be the proper way to display the variable. Furthermore, one gets