Skip to content

Commit a115d24

Browse files
authored
Add notes about enabling subshell support
1 parent 1211a9c commit a115d24

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,14 @@ echo ${preexec_functions[@]}
7777
echo ${precmd_functions[@]}
7878
```
7979

80+
##Subshells
81+
bash-preexec does not support invoking preexec() for subshells by default. It must be enabled by setting `__bp_enable_subshells`.
82+
```bash
83+
# Enable experimental subshell support
84+
export __bp_enable_subshells="true"
85+
```
86+
This is disabled by default due to buggy situations related to to `functrace` and Bash's `DEBUG trap`. See [Issue #25](https://github.com/rcaloras/bash-preexec/issues/25)
87+
8088
##Tests
8189
You can run tests using [Bats](https://github.com/sstephenson/bats).
8290
```bash

0 commit comments

Comments
 (0)