nu: rewatch - fully swallow interrupt in catch

This commit is contained in:
2026-05-17 17:48:04 +02:00
parent c9266f252d
commit 0e99cbb757
+1 -3
View File
@@ -24,9 +24,7 @@ def rewatch [interval: duration, cmd: closure] {
do $cmd | print
sleep $interval
}
} catch {|e|
if ($e.msg !~ "interrupted") { error make { msg: $e.msg } }
}
} catch { null }
}
# Environment variables as a filterable sorted table