Skip to content

Commit

Permalink
main: work around the overwritten builtin "set"
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Nov 11, 2021
1 parent 2243e91 commit a6b4e2c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ble.pp
Expand Up @@ -246,7 +246,7 @@ function ble/base/adjust-builtin-wrappers-1 {
# ので builtin は unset -f builtin してしまう。
unset -f builtin
builtin local POSIXLY_CORRECT=y builtins1 keywords1
builtins1=(builtin unset enable unalias return break continue declare local typeset readonly eval exec)
builtins1=(builtin unset enable unalias return break continue declare local typeset readonly eval exec set)
keywords1=(if then elif else case esac while until for select do done '{' '}' '[[' function)
if [[ ! $_ble_bash_builtins_adjusted ]]; then
_ble_bash_builtins_adjusted=1
Expand Down
5 changes: 3 additions & 2 deletions docs/ChangeLog.md
Expand Up @@ -76,7 +76,7 @@
- rlfunc: support nsearch widgets in `vi_nmap` keymap (requested by cornfeedhobo) `#D1651` 9a7c8b1
- prompt: support `bleopt prompt_ruler` (motivated by Barbarossa93) `#D1666` 05cf638
- prompt: fix hanging by a zero-width `prompt_ruler` `#D1673` 9033f29
- edit: support `bleopt canvas_winch_action` `#D1679` 0000000
- edit: support `bleopt canvas_winch_action` (requested by Johann-Goncalves-Pereira, guptapriyanshu7) `#D1679` 0000000

## Changes

Expand Down Expand Up @@ -180,7 +180,7 @@
- canvas: update prompt trace on `char_width_mode` change (reported by Barbarossa93) `#D1642` 68ee111
- decode (`cmap/initialize`): fix unquoted special chars in the cmap cache `#D1647` 7434d2d
- decode: fix a bug that the characters input while initialization are delayed `#D1670` 430f449
- util (`ble/util/readfile`): fix a bug of always exiting with 1 in `bash <= 3.2` `#D1678` 0000000
- util (`ble/util/readfile`): fix a bug of always exiting with 1 in `bash <= 3.2` (reported by laoshaw) `#D1678` 0000000

## Documentation

Expand Down Expand Up @@ -229,6 +229,7 @@
- cmap: freeze the internal codes of <kbd>find</kbd>/<kbd>select</kbd> and kitty special keys `#D1674` fdfe62a
- main: work around self-modifying `PROMPT_COMMAND` by `bash-preexec` (reported by cornfeedhobo) `#D1650` 39ebf53
- decode: work around openSUSE broken `/etc/inputrc` `#D1662` e5b0c86
- decode: work around the overwritten builtin `set` (reported by eadmaster) `#D1680`

## Internal changes and fixes

Expand Down
5 changes: 5 additions & 0 deletions note.txt
Expand Up @@ -5448,6 +5448,11 @@ bash_tips
Done (実装ログ)
-------------------------------------------------------------------------------

2021-11-12

* main: "alias set=export" としている人がいる (reported by eadmaster) [#D1680]
これは単に退避リストに set を追加するだけで良い。

2021-10-30

* edit: WINCH の際の再描画 (reported by Johann-Goncalves-Pereira, guptapriyanshu7) [#D1679]
Expand Down

0 comments on commit a6b4e2c

Please sign in to comment.