Skip to content

Commit

Permalink
Add notes about enabling subshell support
Browse files Browse the repository at this point in the history
  • Loading branch information
rcaloras authored Aug 22, 2016
1 parent 1211a9c commit a115d24
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ echo ${preexec_functions[@]}
echo ${precmd_functions[@]}
```

##Subshells
bash-preexec does not support invoking preexec() for subshells by default. It must be enabled by setting `__bp_enable_subshells`.
```bash
# Enable experimental subshell support
export __bp_enable_subshells="true"
```
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)
##Tests
You can run tests using [Bats](https://github.com/sstephenson/bats).
```bash
Expand Down

0 comments on commit a115d24

Please # to comment.