From 23379887c05d4f77ca53f1ad3d8e39becc05fd16 Mon Sep 17 00:00:00 2001 From: Jorge Bucaran Date: Mon, 8 Oct 2018 14:24:31 +0900 Subject: [PATCH] refactor: simplify builtin jobs parse script --- fisher.fish | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/fisher.fish b/fisher.fish index 63a91b1..8f498e8 100644 --- a/fisher.fish +++ b/fisher.fish @@ -408,14 +408,7 @@ function _fisher_status_report end function _fisher_jobs - jobs $argv | command awk -v FS=\t ' - /[0-9]+\t/ { - jobs[++n] = $1 - } END { - for (i in jobs) print(jobs[i]) - exit n == 0 - } - ' + jobs $argv | command awk '/[0-9]+\t/ { print $1 }' end function _fisher_wait