voldikss / vim-floaterm

:computer: Terminal manager for (neo)vim
MIT License
2.47k stars 78 forks source link

Any --cmd gives error in terminal /bin/bash: -c: line 1: unexpected EOF while looking for matching `"' #380

Closed WhiteBlackGoose closed 1 year ago

WhiteBlackGoose commented 1 year ago

Before reporting

Environment

If you are using neovim, just run :checkhealth floaterm and post the content

below.

floaterm: health#floaterm#check
========================================================================
## common
  - INFO: Platform: linux
  - INFO: Nvim: NVIM v0.8.0-1210-gd367ed9b2
  - INFO: Plugin: b91fcd9

## terminal
  - OK: Terminal emulator is available

## floating
  - OK: Floating window is available

Configurations related to vim-floaterm in vimrc(i.e. g:floaterm_xxx):

none

Describe your question, feature request, or bug.

Running :FloatermNew --cmd="cd ~" gives error

/bin/bash: -c: line 1: unexpected EOF while looking for matching `"'
/bin/bash: -c: line 2: syntax error: unexpected end of file

(replacing " with ' replaces the first error's " with ')

image

Steps to reproduce

There's no Floaterm-specific configuration that I wrote. So

:FloatermNew --cmd="cd ~"

Screenshots(Optional, GIF is better)

Peek 2022-10-22 07-01

WhiteBlackGoose commented 1 year ago

Apparently I'm an idiot and misunderstood the docs