SolvedEternalTerminal Doesn't work with with non sh-like shells

When using a shell that doesn't allow the VAR=val command syntax, et fails to start etserver. This is the error message:

fish: Unsupported use of '='. In fish, please use 'set SERVER_TMP_DIR $TMPDIR:-$TMP:-$TEMP:-/tmp'.
SERVER_TMP_DIR=${TMPDIR:-${TMP:-${TEMP:-/tmp}}};TMPFILE=$(mktemp $SERVER_TMP_DIR/et-server.XXXXXXXXXXXX);PASSKEY=xxx;ID=yyy;printf "%s/%s\n" "$ID" "$PASSKEY" > "${TMPFILE}";export TERM=st-256color;etserver --idpasskeyfile="${TMPFILE}";true

and the fix probably consist in running /bin/sh -c ... instead of relying on the default shell.

56 Answers

✔️Accepted Answer

This project can't be considered serious if it silently depends on a user's shell choice. @tbodt solution makes sense. If etserver is not in the PATH, then allow specifying its full path as an etclient option.

Related Issues:

3
EternalTerminal Doesn't work with with non sh-like shells
This project can't be considered serious if it silently depends on a user's shell choice @tbodt solu...
96
vscode remote release VS Code Server for WSL closed unexpectedly: Input/output error
I just got this issue too I installed the Windows May 2020 Update yesterday and then installed Ubunt...
69
Win32 OpenSSH Can't add keys to ssh-agent, communication with agent failed
That check in ssh-agent can be removed as sshd now runs as SYSTEM We'll fix it As a workaround to un...
50
borg document pull-like operation
While having documentation for this workaround is great wouldn't it be better to add this functional...
34
vscode remote release ssh -T timeouts with Remote - SSH.
I could track it down to the terminal.integrated.inheritEnv option Setting it to true solved the pro...
30
vscode remote release Cannot connect to remote SSH after upgrading VS Code to 1.43
If I read the release notes right on 1.4.3 Remote SSH has changed the default of option remote.SSH.u...
30
vscode remote release Docker 2.3.0.2 - open folder in container - error CreateProcess failed
We accidentally pick up the docker script next to docker.exe trying to open folder in container - ge...
22
vscode remote release [Remote-SSH] X11 forwarding in integrated terminal won't work
I would love to have this working in VSCode's Remote SSH extension! VSCode Version: 1.34.0-insider O...
20
ssh action SSH Key Passphrase
I suspect a lot of people running into this private key auth issue might have forgotten to add the p...
18
YubiKey Guide Using two yubikeys not covered under guide
I routinely swap between two YubiKeys the Nano in my docking station and the Neo on my keychain ...
14
Win32 OpenSSH Error while executing FixHostFilePermissions.ps1
@JW0914 - You might want to try -command syntax to call the file like this: Powershell.exe -Executio...
13
xterm.js How to use with "colors" lib?
@Tyriar ok I figured it out. Chalk is doing some auto detection to see what it should support ...
11
streisand Server creation blocked by GPG key import
Here's what worked for me (git patch file included below) I tested this by enabling all Streisand fe...
7
Win32 OpenSSH Mouse Events Support
@maertendMSFT the ssh client deployed to W10 2004 is still on version OpenSSH_for_Windows_7.7p1 Libr...
5
vscode remote release Can't connect to Non-English Windows remote
Same situation here Here's a temporary workaround until fix is implemented VSCode Version: 1.43.0-in...
5
vscode remote release always "Opening Remote"
I found a workaround for this issue here but the instructions are a little hard to follow imho ...
5
vscode remote release cannot select python interpreter from my venv on WSL
Add to wsl settings: python.pythonPath: ~/.virtualenvs/venv_test/bin/python, ...
4
streisand Specify your own SSH key
You can tell Ansible to use a specific key - in the inventory file I use several SSH keys side by si...
4
vscode remote release Unable to launch vscode in remote mode from WSL2
Yes I have just one distro (Ubuntu) uname -r provides the same output: 4.19.59-microsoft-standard Is...
4
vscode remote release Remote-WSL cannot fetch remote environment
Running following command in the WSL worked for me The output should show the downgraded version ...
4
vscode remote release Remote WSL not working when using fish shell
Also broken with ZSH after the latest update Update: Changing the default shell back to Bash doesn't...
3
streisand How to setup from Bash on Windows (Ubuntu) (Windows Subsystem for Linux, WSL)
Ok now it works I've installed the Creators Fall Update (Build 16299) Then i've reinstalled WSL (lxr...
3
borg DistributionNotFound error with msgpack-python 0.5.0 installed
A slightly dirty workaround is to pip install msgpack-python. Borg fails to launch with msgpack-pyth...
3
vscode remote release .devcontainer.json lacks docker-compose.override.yml support
I ran into this today for a project that has a shared docker-compose.yml but allows for overrides to...
3
x11docker orchestrating x11docker docker-compose?
you must get tired of people calling you a genius...! here is the d-c file that worked: I just lifte...
3
x11docker Support for webcam sharing
Good news! cheese now runs without a privileged setup I found in #86 that cheese and gnome-ring need...
574
terminal Typing inside of the default WSL terminal feels amazing, why is it better than every other app?
I really do not mind when someone comes by and decides to tell us that we're doing a good job at som...
294
ohmyzsh compinit:503: no such file or directory: /usr/local/share/zsh/site-functions/_brew
Per #9602 (comment) brew cleanup fixed it for me I am using Apple M1 When I added this line: export ...
264
tqdm Jupyterlab and tqdm_notebook
I confirm this problem on my environment but it is upstream so IMHO nothing can be done on tqdm Plea...
99
ohmyzsh how to enable username and hostname in the default theme?
In fact I finally found the solution for the problem I do want to stick with the default theme but I...
92
terminal Guide for build and installation
This information should be included in the Building the Code section of the README file. ...
87
ohmyzsh source ~/.zshrc error
@huangjihua @mcornella There are steps which helped me: zsh chsh -s $(which zsh) Logout from the sys...
86
alacritty Tmux austostart?
It should be like this: Which operating system does the issue occur on? MacOS Catalina I understood ...
85
terminal error 0x80070002 when launching `powershell.exe'
Just add the path of the power shell to the environment variable Thank you It works! %systemroot%\Sy...
84
ohmyzsh tab completion not working
For me there were no permission issues on my completion scripts so the above didn't fix my issue ...
78
alacritty Support for Alt+key (option as meta)
With latest alacritty and tmux I finally got forward and backward movement with the following: ...
76
termux app 403 forbidden while update or pkg Install
If someone facing the issue when you run pkg install ... Issue : when ever I try to update / upgrade...
75
gitsome Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-7SrToZ/gitsome/
I had the same problem on OSX and Solve my issue (I have both python versions installed). ...
75
ohmyzsh Zsh is not installed! Please install zsh first!
Well zsh is not there so it must not be installed sudo apt install zsh will do. ...
71
bat Ubuntu install error when rg is installed also
As a workaround one can use sudo apt install -o Dpkg::Options::=--force-overwrite bat ripgrep (taken...
70
terminal Move the solution to VS2019 and v142 toolset
As mentioned in README (also related to #534) If you're running VS2019 ...
67
ohmyzsh rvm error after starting zsh
For me it is rm ~/.zcomp* I'm getting this error when opening new zshell: As suggested on other rela...
62
guake guake hangs when you put exit on the CLI and then choose No.
To whom hangs on Ubuntu 18.04 #1198 (comment) mentioned a solution: This works for me ...
58
ohmyzsh Warning: plugin cargo not found
Removing the comma at the end of git solved it for me thank you @mcornella ! Went from: to to fix it...
54
hyper Drag and drop does not work, in the terminal window anymore
guys I create a plugin for this: https://github.com/qweasd1/hyper-drop-file just hyper install hyper...
50
alacritty Alt-Left/Right and Home/End don't work and prevent alacritty from closing
@spacecowboy I added the following lines to support skipping words via Alt+Left and Alt+Right on mac...
47
tqdm How to update single progress bar in multiprocessing map()
from https://stackoverflow.com/questions/41920124/multiprocessing-use-tqdm-to-display-a-progress-bar...
44
guake Global shortcut does not work in gnome applications in ubuntu 17.10
@Woile @eN0Rm as a workaround you may disable the shortcut in the guake config and reassign it in th...
43
terminal MEGATHREAD: Breaking settings changes in version 0.11!
Out of curiosity BREAKING SETTINGS CHANGES IN 0.11 BREAKING CHANGE We've deleted a lot of legacy set...