help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EPOCHREALTIME to days, hours, minutes, seconds


From: Greg Wooledge
Subject: Re: EPOCHREALTIME to days, hours, minutes, seconds
Date: Fri, 20 Aug 2021 17:25:16 -0400

On Fri, Aug 20, 2021 at 10:06:53PM +0300, Tapani Tarvainen wrote:
> Incidentally, [![:digit:]] does not work there, you need to use the
> POSIX-specified caret (^) instead of an exclamation mark when using
> character classes.

You've got it backwards.  POSIX specifies ! for use in globs, and bash
permits ^ as an extension, for people who are used to ^ from regular
expressions.

Perhaps you "tested" this using grep or [[ =~ ]] or something else that
uses regular expressions, not globs.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]