Skip to content

Waiting for background jobs to finish on exit #637

@k561

Description

@k561
$ ble summary
GNU bash, version 5.2.21(1)-release (x86_64-pc-linux-gnu) [Linux Mint 22.1]
ble.sh, version 0.4.0-devel4+8060b7a (noarch) [git 2.43.0, GNU Make 4.3, GNU Awk 5.2.1, API 3.2, PMA Avon 8-g1, (GNU MPFR 4.2.1, GNU MP 6.3.0)]
bash-completion, version 2.11 (hash:9abb523dbcb688e7fae4b87f5fc9d155b658d9ba, 76898 bytes) (noarch)
locale: LANG=en_EN.UTF-8
terminal: TERM=xterm wcwidth=15.0-west/16.0-2+ri, kitty:0 (1;4000;32)
options: +extglob +histappend -hostcomplete +inherit_errexit

$ echo $bleopt_allow_exit_with_jobs
yes
$ sleep 20 &
[1] 74760
$ exit

The allow_exit_with_jobs setting doesn’t work. When it’s enabled, ble.sh stops showing the message “There are remaining jobs,” but it still waits for background jobs to finish before exiting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions