Launching a task while using tcsh or csh shells does not work and exits immediately. This is due to the startup flags being passed to it, -l and -c. According to the tcshdocumentation, the -l flag is valid if it is the only flag being passed, so tcsh -l -c will not work.
Bug Description:
Launching a task while using
tcsh
orcsh
shells does not work and exits immediately. This is due to the startup flags being passed to it,-l
and-c
. According to thetcsh
documentation, the-l
flag is valid if it is the only flag being passed, sotcsh -l -c
will not work.Relevant code area; https://github.com/eclipse-theia/theia/blob/a1ea2307d50565944b42f74ba3797698697ec897/packages/task/src/node/process/process-task-runner.ts#L178-L197
Seems like a conditional block can be added to the above code snippet that matches on (t)csh and then only passes
-c
.Steps to Reproduce:
tcsh
available, set theTHEIA_SHELL
env variable to your tcsh location, e.g.export THEIA_SHELL=/bin/tcsh
tasks.json
of typeshell
.Additional Information