Re: [9fans] linux / p9p abomination

2017-03-01 Thread dexen deVries
rc is a thing of beauty.

apologies for HTML in the previous message.

On Wed, Mar 1, 2017 at 1:10 PM, erik quanstrom  wrote:
>> while (true)
>> if ($watch)
>> while (!$cmd)
>> $watch || true
>
> rc allows empty conditionals, which are true.
>
> - erik
>



Re: [9fans] linux / p9p abomination

2017-03-01 Thread erik quanstrom
> while (true)
> if ($watch)
> while (!$cmd)
> $watch || true

rc allows empty conditionals, which are true.

- erik



[9fans] linux / p9p abomination

2017-03-01 Thread dexen deVries
runs build upon file change, repeats on failure

#!/usr/bin/env rc

flag e +

cmd = ( $* )

watch = ( inotifywait -q --recursive -e modify -e moved_to -e create -t 3 .
)

while (true)
if ($watch)
while (!$cmd)
$watch || true