Related: How Interactive Shells Work - https://github.com/akinomyoga/ble.sh

This is issue #653, in particular the list of tasks in this comment.

Bugs Found by Running Ble.sh

Features Needed to Run Ble.sh

Others

Completed

Bugs

NYI

Bugs Found by Running Ble.sh

Features Needed to Run Ble.sh

Try out ble.sh with OSH

Currently, ble.sh does not fully work on Oil. Only a part can be run for testing purpose.

Clone ble.osh

$ git clone --recursive http://github.com/akinomyoga/ble.sh -b osh ble.osh
$ cd ble.osh
$ make

Update ble.osh

The branch osh is occasionally force-pushed so need to be forcibly updated by git reset --hard or git checkout -B. Please be careful not to have your own commits in osh branch or edits in the working tree before running the following commands. They will be lost. You need to save your changes in another branch.

$ cd ble.osh
$ git fetch origin
$ git checkout -B osh origin/osh
$ make

Try unit tests for ble/util

$ cd ble.osh
$ osh --rcfile oshrc.test-util

Try read -e by ble.sh

The builtin read -e (read with line editor) is emulated by ble.sh. Minimal initialization for testing read -e is available with oshrc.read in osh branch of ble.sh.

$ cd ble.osh
$ osh --rcfile oshrc.read
$ read -e

Specify prompt (-p) and initial contents (-i):

$ read -e -p '[\u@\h \W]\$ ' -i 'echo hello'

Related: Running Package Builds with OSH