Skip to content

Commit

Permalink
Fix two more instances of cat
Browse files Browse the repository at this point in the history
  • Loading branch information
mafredri committed Oct 23, 2020
1 parent c18959a commit 1e41772
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions async.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ _async_eval() {
# simplicity, this could be improved in the future.
{
eval "$@"
} &> >(ASYNC_JOB_NAME=[async/eval] _async_job 'cat')
} &> >(ASYNC_JOB_NAME=[async/eval] _async_job 'command -p cat')
}

# Wrapper for jobs executed by the async worker, gives output in parseable format with execution time
Expand All @@ -46,7 +46,7 @@ _async_job() {
duration=$(( EPOCHREALTIME - duration )) # Calculate duration.
print -r -n - $'\0'${(q)jobname} $ret ${(q)stdout} $duration
} 2> >(stderr=$(cat) && print -r -n - " "${(q)stderr}$'\0')
} 2> >(stderr=$(command -p cat) && print -r -n - " "${(q)stderr}$'\0')
)"
if [[ $out != $'\0'*$'\0' ]]; then
# Corrupted output (aborted job?), skipping.
Expand Down

0 comments on commit 1e41772

Please sign in to comment.