Skip to content

Use fd 3 instead of hijacking stdout #11812

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

Closed
wants to merge 1 commit into from

Conversation

kenodegard
Copy link
Contributor

@kenodegard kenodegard commented Sep 8, 2022

Description

After starting with #11748 we found that we didn't like how we were hijacking stdout/stderr. So instead, let's just use file descriptor 3 that way we can still depend on stdout/stderr for their correct purposes.

ref: A simple producer/consumer example
ref: A simple Python example
ref: Is it safe to use fd 3

This is still in POC territory, still missing the fix for:

  • (t)csh
  • cmd.exe
  • PowerShell
  • fish
  • xonsh

Resolves #11748
Depends on #11862
Depends on #11865

Checklist - did you ...

  • Add a file to the news directory (using the template) for the next release's release notes?
  • Add / update necessary tests?
  • Add / update outdated documentation?

@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label Sep 8, 2022
@travishathaway travishathaway added the source::anaconda created by members of Anaconda, Inc. label Dec 5, 2022
@kenodegard
Copy link
Contributor Author

this was a valuable learning and research effort but is unlikely to proceed in the current form

@kenodegard kenodegard closed this Jun 15, 2023
@github-actions github-actions bot added the locked [bot] locked due to inactivity label Jun 14, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla-signed [bot] added once the contributor has signed the CLA locked [bot] locked due to inactivity source::anaconda created by members of Anaconda, Inc.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

conda shell.posix activate/deactivate should write out to fd 3, not stdout
3 participants