Skip to content

Commit

Permalink
syntax: support undocumented "${a~}" and "${a~~}"
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed May 20, 2021
1 parent 8f29203 commit 4df29a6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion lib/core-syntax.sh
Expand Up @@ -2564,7 +2564,7 @@ function ble/syntax:bash/ctx-param {
fi

local rex='##?|%%?|:?[-?=+]|:|/[/#%]?'
((_ble_bash>=40000)) && rex=$rex'|,,?|\^\^?'
((_ble_bash>=40000)) && rex=$rex'|,,?|\^\^?|~~?'
if ((_ble_bash>=50100)); then
rex=$rex'|@[QEPAaUuLK]?'
elif ((_ble_bash>=40400)); then
Expand Down
1 change: 1 addition & 0 deletions memo/ChangeLog.md
Expand Up @@ -38,6 +38,7 @@
- main: support `ble` `#D1544` 750ca38
- main (`ble-update`): support package updates and `sudo` updates (motivated by huresche, oc1024) `#D1548` 0bc2660
- main (`ble-update`): fix help message (contributed by NoahGorny) 50288bf
- syntax: support undocumented `${a~}` and `${a~~}` `#D1561` 0000000

## Changes

Expand Down
22 changes: 11 additions & 11 deletions note.txt
Expand Up @@ -1380,17 +1380,6 @@ bash_tips
0.5 ControlPanel/TUI Framework
0.4 progcolor

2021-05-20

* syntax: ${a~} に対応していない

何れ消えると思っていたがどうも未だ消える気配はない様だ。取り敢えず使える環
境ではちゃんと着色した方が良い様に思われる。

後気付いたのだが実は ${a^^} や ${a,,} も bash-4.0 から使えた様だ。tolower,
toupper の実装に使えるのでは。と思って確認した所、既に 4.0 以上ではこれらを
使う様になっていた。

2021-05-19

* sabbrev: 単語でなくても任意の文脈で発動する sabbrev が欲しい。\ 等で前置す
Expand Down Expand Up @@ -4618,6 +4607,17 @@ bash_tips

2021-05-20

* syntax: ${a~} に対応していない [#D1561]

何れ消えると思っていたがどうも未だ消える気配はない様だ。取り敢えず使える環
境ではちゃんと着色した方が良い様に思われる。

後気付いたのだが実は ${a^^} や ${a,,} も bash-4.0 から使えた様だ。tolower,
toupper の実装に使えるのでは。と思って確認した所、既に 4.0 以上ではこれらを
使う様になっていた。

軽微な修正だがこれだけ放置していても仕方がないのでもう push する。

* prompt: update "PS0" between multiple commands (motivated by tycho-kirchner) [#D1560]

複数のコマンドが一度に実行される時に、それぞれのコマンドについて PS0 が呼び
Expand Down

0 comments on commit 4df29a6

Please sign in to comment.