‘shell’ block syntax is recognised, but ‘zsh’ isn’t.
I’ve tried to attach a screen shot - it hasn’t worked so I’ll just post the code blocks.
```{shell}
export A=1
```
```{zsh}
export A=1
```
The code runs in both cases - although even though I’ve set my environment up such that ’shell’ points to zsh the code in the shell block is still executed by sh (GNU bash, version 3.2.57), not zsh.
Session Info:
R version 4.2.1 (2022-06-23)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Monterey 12.7.1
Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRlapack.dylib
locale:
[1] en_AU.UTF-8/en_AU.UTF-8/en_AU.UTF-8/C/en_AU.UTF-8/en_AU.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] quarto_1.3 knitr_1.39
loaded via a namespace (and not attached):
[1] Rcpp_1.0.11 ps_1.7.5 digest_0.6.33 later_1.3.1 jsonlite_1.8.7
[6] evaluate_0.22 rlang_1.1.2 cli_3.6.2 rstudioapi_0.15.0 rmarkdown_2.25
[11] tools_4.2.1 yaml_2.3.7 xfun_0.40 fastmap_1.1.1 compiler_4.2.1
[16] processx_3.8.2 htmltools_0.5.6.1
RStudio Version:
2022.07.2 Build 576
(Doesn’t work in Version 2023.09.1+494 (2023.09.1+494) either)
© 2009-2022 RStudio, PBC
"Spotted Wakerobin" Release (e7373ef8, 2022-09-06) for macOS
Mozilla/5.0 (Macintosh; Intel Mac OS X 12_7_1) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.10 Chrome/69.0.3497.128 Safari/537.36
pandoc version: pandoc 3.1.11
quarto version: 1.3.340
zsh version: zsh 5.8.1 (x86_64-apple-darwin21.0)
highlight version 4.10