containers / containers/toolbox

Is there a way to preserve toolbox PWD uppon exit?

Open
#1,604 5 comments 0 reactions 0 assignees View on GitHub
1. Feature request
Dominant language
Go
Stars
3.5k
Forks
262
Avg merge
3d 1h
Merged PRs (30d)
1

Description

**Is your feature request related to a problem? Please describe.**
Is there a way to preserve toolbox PWD upon exit?
I.e.: This is the behavior today:
```
$ pwd
/home/user

$ toolbox enter

⬢ [toolbox:41] $ cd bin

⬢ [toolbox:41] $ pwd
/home/user/bin

⬢ [toolbox:41] $ logout

$ pwd
/home/user
```

**Describe the solution you'd like**
I would like a way to preserve toolbox PWD upon exit:
```
$ pwd
/home/user

$ toolbox enter

⬢ [toolbox:41] $ cd bin

⬢ [toolbox:41] $ pwd
/home/user/bin

⬢ [toolbox:41] $ logout

$ pwd
/home/user/bin
```

Contributor guide

Open the contributing guide

Research direction

Start by tracing the toolbox enter and logout command handling and how the host shell's current directory is passed into and out of the toolbox. Reproduce the documented /home/user to /home/user/bin example, then determine how the host directory can reflect the directory reached inside the toolbox. Done means exiting after cd bin leaves the host shell in /home/user/bin.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.