• [ksh93u+m] alarm timer function

    From Arti F. Idiot@21:1/5 to Janis Papanagnou on Mon Mar 18 11:10:14 2024
    On 3/18/24 9:06 AM, Janis Papanagnou wrote:
    On 18.03.2024 15:14, Arti F. Idiot wrote:

    I think several OSes have a tool called 'progress' which sort of
    functions as you've described; NetBSD does natively.

    Oh, I wasn't aware that there's some OS specific standard for that.

    Having it built-in would be better though. Was 'alarm' removed in
    ksh93?

    It was (still is) there in [official] ksh93u+. That was the version
    I predominantly used on my platforms.

    Meanwhile I've replaced the "u+" version by Martijn Dekker's "u+m"
    version. (The latter has less bugs and works much more reliable.)
    It's just my recent switch that made me notice that in his branch
    there's no 'alarm' available any more.

    Janis


    I was mistaken; alarm is in the att-ksh93 pkgsrc package, it's just an undocumented built-in, apparently because D. Korn felt it it didn't
    function consistently. My brief experiments earlier resulted in several
    hung sessions. It's an interesting idea though.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John-Paul Stewart@21:1/5 to Arti F. Idiot on Mon Mar 18 16:27:14 2024
    On 2024-03-18 10:14 a.m., Arti F. Idiot wrote:

    I think several OSes have a tool called 'progress' which sort of
    functions as you've described; NetBSD does natively. 

    Careful, though. On Linux systems it is unlikely to be installed by
    default. And even if it is installed, it's likely to be a very
    different 'progress' program than the NetBSD one:

    https://github.com/Xfennec/progress

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lawrence D'Oliveiro@21:1/5 to Keith Thompson on Mon Mar 25 04:49:06 2024
    On Mon, 18 Mar 2024 12:39:51 -0700, Keith Thompson wrote:

    Scheduled commands run only while the shell is waiting at a prompt for
    input.

    I wonder why shells don’t make use of poll(2) to run things asynchronously
    to command input.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)