Error -sh: /dev/fd/64: line 14: syntax error: unexpected "(" (expecting "}")

cannot connect with VisualStudio Code
error: -sh: /dev/fd/64: line 14: syntax error: unexpected “(” (expecting “}”) and the connection terminates…
while connecting with Terminus/Terminal is working I get the same Error message… but I can a least do my stuff…
HaOS

  • Core2026.2.1
  • Supervisor2026.01.1
  • Operating System17.0
  • Frontend20260128.6
1 Like

I am also seeing this, and found [SSH] -sh: /dev/fd/64: line 14: syntax error: unexpected "(" (expecting "}") · Issue #4158 · home-assistant/addons · GitHub

If this is about the VSCode App, I suggest asking here: Home Assistant Community Add-on: Visual Studio Code or the GitHub listed in that post.

New one:

Seems someone revived the error.
Bashism which outputs error if not using bash as shell …

There are several ways around. Not using bashisms, but stay compatible with all shells is the best. Check if bash is active before calling bashims (preferably if not doing things that would be helpful for all shells) is the second best.