New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$SHELL
not exported in ddev ssh
#6018
Comments
$SHELL
not available on some child process$SHELL
not available on some child processes
$SHELL
not available on some child processes$SHELL
not available on child processes
Is this is the right repo? |
Erm.. I think so, why? |
I think it's the fact that the image doesn't properly export SHELL as it should, but that's my understanding, I might be wrong. |
It doesn't mention anything about DDEV, all about platform cli? |
I think your answer is in https://unix.stackexchange.com/questions/277944/what-sets-the-shell-environment-variable SHELL is set on login shells. |
Just an experience I had on ddev with those tools. I would expect platform
self:install to just work normally
Reply might shorter than usual / Respuesta más resumida qué de costumbre
Enviado desde el celular / Sent from Mobile
…On Tue, 26 Mar 2024 at 10:45 Randy Fay ***@***.***> wrote:
I think your answer is in
https://unix.stackexchange.com/questions/277944/what-sets-the-shell-environment-variable
SHELL is set on login shells.
—
Reply to this email directly, view it on GitHub
<#6018 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFFP5ZYXQNF4QZJHPNGVY3Y2F3V3AVCNFSM6AAAAABFI6MR36VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRQGQ3TCNJXGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Sorry I wasn’t clear. I did edited it afterwards
Reply might shorter than usual / Respuesta más resumida qué de costumbre
Enviado desde el celular / Sent from Mobile
…On Tue, 26 Mar 2024 at 10:47 Ariel Barreiro ***@***.***> wrote:
Just an experience I had on ddev with those tools. I would expect platform
self:install to just work normally
Reply might shorter than usual / Respuesta más resumida qué de costumbre
Enviado desde el celular / Sent from Mobile
On Tue, 26 Mar 2024 at 10:45 Randy Fay ***@***.***> wrote:
> I think your answer is in
> https://unix.stackexchange.com/questions/277944/what-sets-the-shell-environment-variable
>
> SHELL is set on login shells.
>
> —
> Reply to this email directly, view it on GitHub
> <#6018 (comment)>, or
> unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAFFP5ZYXQNF4QZJHPNGVY3Y2F3V3AVCNFSM6AAAAABFI6MR36VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRQGQ3TCNJXGI>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
but SHELL is set, that's why Only it's not carried on to the |
Maybe you can come up with a recreation scenario so we can talk. I can't understand how this relates to DDEV at this point. I always appreciate your careful attention to DDEV and reporting problems and frictions! |
Isn’t the steps to reproduce on the original comment ok? I can showcase it
otherwise.
Reply might shorter than usual / Respuesta más resumida qué de costumbre
Enviado desde el celular / Sent from Mobile
…On Tue, 26 Mar 2024 at 10:55 Randy Fay ***@***.***> wrote:
Maybe you can come up with a recreation scenario so we can talk. I can't
understand how this relates to DDEV at this point.
I always appreciate your careful attention to DDEV and reporting problems
and frictions!
—
Reply to this email directly, view it on GitHub
<#6018 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFFP54XZ5KLRDTMQ2LJZV3Y2F44PAVCNFSM6AAAAABFI6MR36VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRQGQ4TKMZUGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Please provide a simple recreation scenario that shows step-by-step what to do to demonstrate the issue. Use a simple script perhaps? |
Thanks for taking the time to explain this in Discord. Although it's not exactly standard for |
$SHELL
not available on child processes$SHELL
not exported in ddev ssh
This is an odd thing but as I saw it twice in different situations I rather raise it up.
Some time ago I submitted platformsh/cli#117
In working with https://github.com/hanoii/ddev-pimp-my-shell I also submitted junegunn/fzf-git.sh#37. I couldn't really understand what was going on until I figured those issues were the same issue,
$SHELL
was notbash
on either situation.Steps To Reproduce
I tried to reproduce it with scripts, but I couldn't, the best way I found for you to reproduce it is to spin up a bare php project and install the platform-cli inside
ddev ssh
:curl -fsSL https://raw.githubusercontent.com/platformsh/cli/main/installer.sh | bash
Then run
platform self:install
You will see the following in the output:
Setting up autocompletion... skipped (unsupported shell)
If you run, however, the following:
SHELL=$SHELL platform self:install
You will see:
Setting up autocompletion... done
So not sure if this is the expected behavior. I think SHELL just needs to be properly exported, but I haven't tracked why this happens.
I ended up export SHELL myself on my addon at https://github.com/hanoii/ddev-pimp-my-shell/blob/514d264b76e3555c87df2390283aaea36b0aac81/homeadditions/.bashrc.d/pimp-my-shell.sh#L4 which fixed both things.
The text was updated successfully, but these errors were encountered: