Skip to content

Change how shell works and make activation more robust - #316

Merged
ruben-arts merged 21 commits into
prefix-dev:mainfrom
wolfv:wip/pty-signalhook
Sep 27, 2023
Merged

ruben-arts merged 21 commits into
prefix-dev:mainfrom
wolfv:wip/pty-signalhook

Conversation

@wolfv

@wolfv wolfv commented Aug 30, 2023

Copy link
Copy Markdown
Member

For shell, we used to run the activation script and then start the shell.
The problem was that the shell also runs a bashrc, zshrc or similar file after starting. So any PATH modifications (or env var modifications) we had done might have been un-done by the bashrc file.

This PR changes how shell works. It first starts the shell (that runs all bashrc etc. commands) and then sources an activation script.
This is only possible with some UNIX foo (forking and mirroring the shell).

We copied the approach from poetry that uses pexpect. We forked parts of rexpect here to make it work.

@wolfv
wolfv force-pushed the wip/pty-signalhook branch from 389a405 to 205ac6b Compare August 30, 2023 08:29
@baszalmstra

Copy link
Copy Markdown
Contributor

@wolfv What is still missing? Is there something we can take from your hands?

@ruben-arts

Copy link
Copy Markdown
Contributor

I would propose to move all the PS1 related changed out of this PR. Then fix that later in an other PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants