-ne in Rstudio terminal

After updating RStudio to 2023.09.0 Build 463 I have a strange -ne text appearing in the RStudio Terminal every time I hit enter.

Screenshot 2023-10-04 at 10.12.49

This -ne does not show up in my system terminal or iterm.

Anyone else experiencing this?

> sessionInfo()
R version 4.3.1 (2023-06-16)
Platform: x86_64-apple-darwin20 (64-bit)
Running under: macOS Ventura 13.6

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib 
LAPACK: /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/lib/libRlapack.dylib;  LAPACK version 3.11.0

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

time zone: Europe/London
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
 [1] utf8_1.2.3        R6_2.5.1          tidyselect_1.2.0  magrittr_2.0.3    glue_1.6.2        tibble_3.2.1      pkgconfig_2.0.3   dplyr_1.1.2      
 [9] generics_0.1.3    lifecycle_1.0.3   cli_3.6.1         fansi_1.0.4       vctrs_0.6.3       compiler_4.3.1    rstudioapi_0.15.0 tools_4.3.1      
[17] pillar_1.9.0      rlang_1.1.1      

I get that also. I think it's because I have .zprezto installed on my Mac. I guess the decorators get rendered as -ne. My current workaround is to start a different type of shell (bash).

I use bash. Curiously, when I call a new bash in the Rstudio terminal, the -ne are no longer produced. I will play a bit with my bash settings and try to isolate the issue.

Same issue here.

I could not isolate the problem by excluding bash scripts (~/.bash_profile, etc.). zsh seems fine. The only solution was to reinstall RStudio 2023.06.1+524.

Hypothesis: a new "echo" command somewhere with an unsupported "-n" option?

R version 4.3.1 (2023-06-16)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Ventura 13.6

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib 
LAPACK: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib;  LAPACK version 3.11.0

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

time zone: America/Chicago
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

FYI: Stray `-ne` text in the Terminal · Issue #13809 · rstudio/rstudio · GitHub

Thank you, @edavidaja. It seems like a confirmed issue. From your link a work-around is to add the following line to ~/.bash_profile:

set +o posix
1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.