I have updated my bash to bash version 4.4.0 on mac osx. However, as explained in this question, I cannot update the bash version under bin/bash
but just install a parallel shell under /usr/local/bin/bash
how can I point knitr to this shell? engine.path
seems to get ignored:
```{r, engine='bash', engine.path='/usr/local/bin/bash'}
which bash
```
gives
/bin/bash
update
@ Kevin: yes you are right, echo $BASH
gives /usr/local/bin/bash
BUT:
from knitr
```{bash, engine.path='/usr/local/bin/bash'}
which bash
echo $BASH
bash --version
```
gives
/bin/bash
/usr/local/bin/bash
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin15) Copyright (C) 2007 Free Software Foundation, Inc.
while the same from the command line gives
edit 2
after re-reading the answer of @Kevin, this works
```{r, engine = "bash", engine.path = "/usr/local/bin/bash"}
export PATH="/usr/local/bin:$PATH"
bash --version
```
GNU bash, version 4.4.0(1)-release (x86_64-apple-darwin15.6.0)