3 ms·
> It’s a shame we can’t use timeout with until directly The until keyword is part of the POSIX.2 shell specification, which does not include any sort of timeou
by chasil 1y ago
> It’s a shame we can’t use timeout with until directly
The until keyword is part of the POSIX.2 shell specification, which does not include any sort of timeout functionality. It could be implemented in bash, but it would not be portable to other shells (Debian dash being the main concern).
This is the reason that it is implemented as a separate utility.
Search for "The until loop" below to see the specification.
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V...