Re: Exclamation mark when using character classes

2021-08-21 Thread Lawrence Velázquez
> On Fri, Aug 20, 2021 at 10:30 PM hancooper via Bug reports for the GNU > Bourne Again SHell bug-bash@gnu.org wrote: > > 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' "${

Re: Exclamation mark when using character classes

2021-08-21 Thread Ilkka Virta
What do you get with [![:digit:]] then? It seems to work the same with both ! and ^ here: $ now=$EPOCHREALTIME $ echo "${now%[^[:digit:]]*}" "${now#*[^[:digit:]]}" 1629544775 183030 $ echo "${now%[![:digit:]]*}" "${now#*[![:digit:]]}" 1629544775 183030 On Fri, Aug 20, 2021 at 10:30 PM hancoope

Re: Exclamation mark when using character classes

2021-08-20 Thread Kerin Millar
On Fri, 20 Aug 2021 23:33:38 + hancooper wrote: > ‐‐‐ Original Message ‐‐‐ > On Friday, August 20, 2021 8:00 PM, Kerin Millar wrote: > > > On Fri, 20 Aug 2021 19:28:25 + > > hancooper via Bug reports for the GNU Bourne Again SHell bug-bash@gnu.org > > wrote: > > > > > I am usin

Re: Exclamation mark when using character classes

2021-08-20 Thread Kerin Millar
On Fri, 20 Aug 2021 19:28:25 + hancooper via Bug reports for the GNU Bourne Again SHell wrote: > 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:]