diff --git a/docs/ChangeLog.md b/docs/ChangeLog.md index 0288b90a..4e18fab8 100644 --- a/docs/ChangeLog.md +++ b/docs/ChangeLog.md @@ -338,7 +338,7 @@ - complete: work around a false warning messages of gawk-4.0.2 `#D1709` 9771693 - main: work around `XDG_RUNTIME_DIR` of a different user by `su` (reported by zim0369) `#D1712` 8d37048 - main (`ble/util/readlink`): work around non-standard or missing `readlink` (motivated by peterzky) `#D1720` a41279e - - util (`ble/function#pop`): allow popping unset function `#D1834` XXXXXXX + - util (`ble/function#pop`): allow popping unset function `#D1834` c0abc95 - menu (`menu-style:desc`): work around xenl quirks for relative cursor movements (reported by telometto) `#D1728` 3e136a6 - global: work around the arithmetic syntax error of `10#` in Bash-5.1 `#D1734` 7545ea3 - global: adjust implementations for Bash 5.2 `patsub_replacement` `#D1738` 4590997 @@ -364,7 +364,7 @@ - progcomp: work around the cobra V2 description hack (reported by SuperSandro2000) `#D1803` 71d0736 - complete: work around blocking `_scp_remote_files` and `_dnf` (reported by iantra) `#D1807` a4a779e 46f5c13 - history: work around broken timestamps in `HISTFILE` (reported by johnyaku) `#D1831` 5ef28eb -- progcomp: disable `command_not_found_handle` (reported by telometto, wisnoskij) `#D1834` 64d471a d5fe1d1 +- progcomp: disable `command_not_found_handle` (reported by telometto, wisnoskij) `#D1834` 64d471a d5fe1d1 XXXXXXX ## Internal changes and fixes diff --git a/lib/core-complete.sh b/lib/core-complete.sh index 862c53ea..67920ba7 100644 --- a/lib/core-complete.sh +++ b/lib/core-complete.sh @@ -3671,7 +3671,7 @@ function ble/complete/progcomp/.try-load-completion { ble/function#push command_not_found_handle __load_completion "$1" < /dev/null &>/dev/null; local ext=$? ble/function#pop command_not_found_handle - ((ext==0)) || return "$1" + ((ext==0)) || return "$ext" builtin complete -p -- "$1" &>/dev/null } diff --git a/note.txt b/note.txt index a78aae37..130fa515 100644 --- a/note.txt +++ b/note.txt @@ -6595,6 +6595,11 @@ bash_tips おける変更である。この時に一応 function#pop に対しても対応する変更がなさ れているが、それが不完全だったという事。 + * 2022-07-10 "bash: return: echo: numeric argument required" + https://github.com/akinomyoga/ble.sh/issues/208 + + これはミスだ。修正する。 + 2022-07-07 * main: fd 0, 1 が TTY かどうかのチェックが常に偽になっている [#D1833]