terminal cd . result in following weird error in the terminal buffer:
executing job failed: No such file or directory
The same error appears for
term_start('cd .'). It doesn't matter which directory i
cd to, the error doesn't change.
If i execute
terminal without command, than execute
cd . in the opened terminal, everything works fine.
I'm using vim8.1 include patches 1-1282 on Ubuntu 16.04.6 .
Based on help from comment and answer, i change command to
terminal bash -c 'cd .'
but it results in following error:
.': -c: line 0: unexpected EOF while looking for matching `'' .': -c: line 1: syntax error: unexpected end of file
buffer name of the terminal is:
!bash -c 'cd .'
If i replace single quote to double quote, the command works. But why?