mirror of
https://github.com/jorgebucaran/fisher
synced 2024-11-15 12:13:28 +00:00
refactor: simplify builtin jobs parse script
This commit is contained in:
parent
2e933cad31
commit
23379887c0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user