some plugins not working on fish shell
What happened?
certain plugins (tried samba, users) don't work when the host uses fish shell.
fish: Expected end of the statement, but found keyword 'exec' export PATH="$PATH:/usr/sbin:/sbin:/usr/local/sbin"; if [ "$(id -u)" = "0" ]; then exec bash -s; else exec sudo -n env PATH="$PATH" bash -s; fi ^~~^
Steps to reproduce
install plugin on host with fish shell attempt to connect to samba plugin see error :(
Termix version
v26.11.1
Platform
Website, Linux
[!NOTE] Submitted via the Termix Discord Support Bot Reported by lunarconstruct on Discord View Discord thread
Auto-triage
Plugins fail on hosts using fish shell because host scripts use bash syntax. The fix ensures scripts run under sh for compatibility.
| Field | Value |
|---|---|
| Type | Bug |
| Difficulty | 2/5 (Small) |
| Priority | Medium |
A maintainer will take a look. If anything above looks wrong, just say so.
Fixed in #1806: host scripts now run under sh, so fish and csh login shells work. It ships with Termix 26.11.2 and plugin SDK 2.10.0, and each plugin picks it up in its next release.
This was fixed in v26.11.2. Update Termix to the latest version to get it. Thanks for the report!