bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] system() should return != 0 when the process is killed


From: arnold
Subject: Re: [bug-gawk] system() should return != 0 when the process is killed
Date: Sat, 05 Mar 2016 11:36:08 -0700
User-agent: Heirloom mailx 12.4 7/29/08

Jarno Suni <address@hidden> wrote:

> In my experience
>
>   awk '{system("sleep 1")}'
>
> newer exits with any awk I have tried.

This is because it's waiting for a line of input before
executing the action.  Try instead

        awk 'BEGIN { system("sleep 1") }'

and see what happens.

Arnold



reply via email to

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