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

Re: Is there a POSIX compliant way of turning a "HH:MM:SS" formatted string to seconds? ...



On Sun, Jul 20, 2025 at 2:34 AM Michael Paoli
<michael.paoli@berkeley.edu> wrote:
>
> [...]
> And sed and awk are POSIX, so using those is POSIX, so long as we
> restrict ourselves to specified POSIX functionality.

As crazy as this is going to sound... you can't count on all POSIX
tools to be present anymore. VMs or containers are apparently being
built or distributed without some of the tools. See, for example,
"Fedora 42 doesn't have awk: how to deal with autoconf subst?,"
<https://lists.gnu.org/archive/html/bug-gnulib/2025-04/msg00127.html>.
(Fedora 42 was _not_ the problem. The problem was the vm or container
lacked some of the text tools).

Jeff


Reply to: