terminal cd .
results 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, then 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 changed the 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 the single quotes with double quotes the command works. But why?
cd
tobin
and do something, i thought that doesn't change the problem, so i make the case as simple as possible.cd
is actually an internal shell command and not actually a binary. See also this answer: unix.stackexchange.com/a/50025/303213 and here: unix.stackexchange.com/a/116972/303213