Skip to content

Commit

Permalink
complete (.try-load_completion): fix "return" argument (fixup d5fe1d1)
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Jul 9, 2022
1 parent c0abc95 commit 973ae8c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/ChangeLog.md
Expand Up @@ -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
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion lib/core-complete.sh
Expand Up @@ -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
}
Expand Down
5 changes: 5 additions & 0 deletions note.txt
Expand Up @@ -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]
Expand Down

0 comments on commit 973ae8c

Please sign in to comment.