mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 05:12:50 +08:00
Don't print multiple summaries for multiline jobs
For example $ echo 'line line2' | sleep 1 & fish: Job 1, 'echo 'line' has ended fish: Job line2' | sleep 1 &, '' has ended
This commit is contained in:
parent
8639d7e450
commit
1185e5279e
|
@ -25,7 +25,7 @@ function fish_job_summary -a job_id is_foreground cmd_line signal_or_end_name si
|
|||
end
|
||||
|
||||
set -l max_cmd_len 32
|
||||
set cmd_line (string shorten -m$max_cmd_len -- $cmd_line)
|
||||
set cmd_line (string shorten -m$max_cmd_len -- $cmd_line | string collect)
|
||||
|
||||
set -l message
|
||||
switch $signal_or_end_name
|
||||
|
|
Loading…
Reference in New Issue
Block a user