New
Patch 0.1.15
ble-0.1.15 (2023-04-03)
Usage
Prerequisites
Bash 3.0+ and basic POSIX utilities are required.
Download ble-0.1.15.tar.xz
https://github.com/akinomyoga/ble.sh/releases/download/v0.1.15/ble-0.1.15.tar.xz
# DOWNLOAD with wget
wget https://github.com/akinomyoga/ble.sh/releases/download/v0.1.15/ble-0.1.15.tar.xz
# DOWNLOAD with curl
curl -LO https://github.com/akinomyoga/ble.sh/releases/download/v0.1.15/ble-0.1.15.tar.xz
Trial & Install
# TRIAL
tar xJf ble-0.1.15.tar.xz
source ble-0.1.15/ble.sh
# INSTALL
tar xJf ble-0.1.15.tar.xz -C ~/.local/share/blesh
# Add the following line near the top of ~/.bashrc
[[ $- == *i* ]] && source ~/.local/share/blesh/ble.sh --noattach
# Add the following line at the end of ~/.bashrc
((_ble_bash)) && ble-attach
blesh-0.1 fixes
- edit,highlight: backport changes in rebased commits dfac242
- bump 0.1.15 3f4d866
Fixes
- edit (sword): fix definition of
sword(shell words)#D144103980f1 (master: f923388) - bind: work around broken
cmd_xmapafter switching the editing mode#D1478847e602 (master: 8d354c1) - benchmark (
ble-measure): fix a bug that the result is always 0 in Bash 3 and 4 (fixup 4759768 (master: bbc2a90))#D1615a034c91 - main: work around
. ble.sh --{test,update,clear-cache}in intereactive sessions#D15554759768 (master: bbc2a90) - main: fix reloading after ble-update (fixup 4759768 (master: bbc2a90)) (fixed by oc1024)
#D15589372670 - main: fix exit status for
bash ble.sh --test(fixup 4759768 (master: bbc2a90))#D1558641238a - main: work around sourcing
ble.shinside subshells#D15544759768 (master: bbc2a90) - util: work around the Bash 3 bug of array assignments with
^Aand^?in Bash 3.2#D16149648bd4 (master: b9f7611) - decode, canvas, etc.: explicitly treat CSI arguments as decimal numbers (reported by GorrillaRibs)
#D162540a0ec9 (master: c6473b7) 2ea48d7 - edit: fix a bug that
command-helpdoesn't work#D1635c99e2f1 (master: 0f6a083) - canvas: update prompt trace on
char_width_modechange (reported by Barbarossa93)#D16425b22cd6 (master: 68ee111) - complete: do not generate keywords for quoted command names
#D1691cd75f39 (master: 60d244f) - progcomp: retry completions on
$? == 124also for non-default completions (reported by SuperSandro2000)#D1759a66b547 (master: 82b9c01) - edit: fix the restore failure of
PS1andPROMPT_COMMANDonble-detach#D1784a0f6594 (master: b9fdaab) - history: work around possible dirty prefix
*in the history output#D18080ed2ffb (master: 64a740d) - main. util: fix problems of readlink etc. found by test in macOS (reported by aiotter)
#D18491dc5938 (master: fa955c1)#D1855a22e145 - global: quote
return $?#D1884c2ba90b (master: 801d14a) - bind: fix M-C-@, C-x C-@, and M-C-x (
bash-4.2 -o emacs)#D1920de577dc (master: a410b03)
Changes
- syntax: exclude
\ + LFat the word beginning from words (motivated by cmplstofB)#D143169156f1 (master: 67e62d6) - edit: change default behavior of C-w and M-w to operate on backward words
#D14480a07c13 (master: 47a3301) - edit: the widgets
{kill,copy,delete}-region-ornow receives widgets as arguments#D1021ec16708 (master: bbbd155) - main: show notifications against debug versions of Bash
#D16128f989e4 (master: 8f974aa) - main: suppress non-interactive warnings from manually sourced startup files (reported by andreclerigo)
#D16762a045d8 (master: 0525528) 88e2df5 - main: suppress non-interactive warnings from manually sourced startup files (reported by andreclerigo)
#D16760525528 4ef844e (master: 88e2df5) - util (
ble/util/buffer): hide cursor in rendering#D1758444abff (master: e332dc5) - edit (
ble-detach): prepend a space tostty saneforHISTIGNORE=' *'#D1796acb7c08 (master: 26b532e) - history: disable the history file when
HISTFILEis empty#D1836a79095a (master: 9549e83)
Compatibility
- global: work around empty
vi_imapcache bytmux-resurrect#D1562b0cc0a3 (master: 560160b) - cmap: add
st-specific escape sequences for cursor keys#D1633ae298f1 (master: acfb879) - cmap: distinguish find/select from home/end for openSUSE
inputrc.keys(reported by cornfeedhobo)#D1648603cf41 (master: c4d28f4) - cmap: freeze the internal codes of find/select and kitty special keys
#D167466263c4 (master: fdfe62a) - decode: work around the overwritten builtin
set(reported by eadmaster)#D168043dcb66 (master: a6b4e2c) - complete: work around the variable leaks by
virshcompletion fromlibvirt(reported by telometto)#D1682d13ce5b (master: f985b9a) - stty: do not remove keydefs for C-u, C-v, C-w, and C-? (reported by laoshaw)
#D16836335dc2 (master: 82f74f0) - main (
ble/util/readlink): work around non-standard or missingreadlink(motivated by peterzky)#D172094137b7 (master: a41279e) - global: work around the arithmetic syntax error of
10#in Bash-5.1#D17347c2463e (master: 7545ea3) - global: adjust implementations for Bash 5.2
patsub_replacement#D1738f1599ee (master: 4590997) - main: check
/dev/ttyon startup (reported by andychu)#D174928e9c44 (master: 711c69f) - global: work around
shopt -s compat42#D175459075cc (master: a75bb25) - global: identify bash-4.2 bug that internal quoting of
${v/%$empty/"$rep"}remains#D175359075cc (master: a75bb25) - prompt: fix a bug of
ble/prompt/printredundantly quoting$#D175259075cc (master: a75bb25) - global: work around
compat42quoting of"${v/pat/"$rep"}"#D175159075cc (master: a75bb25) - util: add identification of Windows Terminal
wt#D1758444abff (master: e332dc5) - global: work around bash-3.0 bug that single quotes remains for
"${v-$''}"#D1774d0dc13e (master: 9b96578)
Optimization
- prompt: fix not properly set
$?in${PS1@P}evaluation (reported by nihilismus)#D1644a7b5c4b (master: 521aff9)
Internal changes and fixes
- main: include hostname in local runtime directory
#D14441a5e90a (master: 6494836) - global: fix status check for read timeout
#D1467b56d638 (master: e886883) - util, etc: ensure each function to work with arbitrary
IFS#D1490#D14917228fd0 (master: 5f9adfe) - util: fix leak variables
buff,trap,{x,y}{1,2}#D1572de71ada (master: 5967d6c) - make: add fallback Makefile for BSD make
#D18052cb758f (master: e5d8d00) - util, decode, vi: fix leak variables
#D1933a2197a6 (master: 8d5cab8) - syntax: fix code formatting [histdb: support auto-complete source
histdb-word]#D1938492349f (master: 00cae74)
Test
- util (ble/util/s2bytes): clear locale cache
#D1881a8d7fd7 (master: 2e1a7c1) - util (ble/util/s2c): work around intermediate mbstate of bash <= 5.2
#D1881a8d7fd7 (master: 2e1a7c1) - util (ble/encoding:UTF-8/b2c): fix interpretation of leading byte
#D1881a8d7fd7 (master: 2e1a7c1)