From a115d247bf662c6b8fdedc610b30a08ceb812712 Mon Sep 17 00:00:00 2001 From: Ryan Caloras Date: Sun, 21 Aug 2016 20:48:32 -0400 Subject: [PATCH] Add notes about enabling subshell support --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 5913a51..5da8781 100644 --- a/README.md +++ b/README.md @@ -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