Skip to content

Commit

Permalink
util(joblist): exclude more foreground dead jobs in Bash 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Feb 24, 2024
1 parent 0b176e7 commit 8a32142
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions ble.pp
Original file line number Diff line number Diff line change
Expand Up @@ -1893,6 +1893,7 @@ function ble-update/.download-nightly-build {
local tarname=ble-nightly.tar.xz
local url_tar=$_ble_base_repository_url/releases/download/nightly/$tarname
(
ble/util/joblist/__suppress__
set +f
shopt -u failglob nullglob

Expand Down
1 change: 1 addition & 0 deletions docs/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
- main(unload): redirect streams to work around trap `EXIT` in bash-5.2 (reported by ragnarov) `#D2142` 38a8d571
- complete: call the `docker` command through `ble/util/conditional-sync` `#D2150` 6c3f824a
- util(joblist): fix job detection in Bash 5.3 `#D2157` 6d835818
- util(joblist): exclude more foreground dead jobs in Bash 5.3 `#D2174` xxxxxxxx
- util,complete: work around regex `/=.../` failing in Solaris nawk `#D2162` 46fdf44a
- main: fix issues in MSYS1 `#D2163` 5f0b88fb
- util: work around bash-3.1 bug that `10>&-` fails to close the fd `#D2164` b5938192
Expand Down
1 change: 1 addition & 0 deletions lib/core-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ function ble/test/diff {
local f1=$BASHPID.$1.expect
local f2=$BASHPID.$1.result
(
ble/util/joblist/__suppress__
cd "$dir"
ble/util/print "$2" >| "$f1"
ble/util/print "$3" >| "$f2"
Expand Down
7 changes: 7 additions & 0 deletions note.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7395,6 +7395,13 @@ bash_tips

2024-02-24

* util(joblist): 5.3 でまた色々沢山 foreground dead jobs が表示される [#D2174]

5.3 ではより多くの foreground dead jobs が表示される様になってしまった。仕
方がないので取り敢えず表示された物から順に __suppress__ を指定していく事に
する。色々 todo が溜まっているので小さな変更だが、もう処理してしまう事にす
る。

* edit: macOS 3.2 で C-d が効かないという話 (reported by gregwalters) [#D2173]
https://github.com/akinomyoga/ble.sh/issues/416#event-11897058166

Expand Down
1 change: 1 addition & 0 deletions src/history.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1001,6 +1001,7 @@ function ble/builtin/history/.check-uncontrolled-change {
if [[ $filename && :$opts: == *:append:* ]] && ((_ble_builtin_history_wskip<prevmax&&prevmax<max)); then
# 最後に管理下で追加された事を確認した範囲 wskip..prevmax を書き込む。
(
ble/util/joblist/__suppress__
ble/builtin/history/.delete-range "$((prevmax+1))" "$max"
ble/builtin/history/.write "$filename" "$_ble_builtin_history_wskip" append:fetch
)
Expand Down
1 change: 1 addition & 0 deletions src/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3617,6 +3617,7 @@ function ble/util/for-global-variables {
local __ble_hidden_only=
[[ :$__ble_opts: == *:hidden-only:* ]] && __ble_hidden_only=1
(
ble/util/joblist/__suppress__
((_ble_bash>=50000)) && shopt -u localvar_unset
__ble_error=
__ble_q="'" __ble_Q="'\''"
Expand Down

0 comments on commit 8a32142

Please sign in to comment.