Skip to content

Synced try environments (#153) - #207

Merged
mgree merged 6 commits into
binpash:mainfrom
Ioa1:153
Nov 7, 2025
Merged

mgree merged 6 commits into
binpash:mainfrom
Ioa1:153

Conversation

@Ioa1

@Ioa1 Ioa1 commented Sep 5, 2025

Copy link
Copy Markdown
Contributor

Synced OLDPWD env variable, unset TRY_COMMAND and UPDATED_DIRS_AND_MOUNTS to sync the environments within and outside of try

@ezrizhu

ezrizhu commented Sep 6, 2025

Copy link
Copy Markdown
Member

can we also unset TRY_SHELL? otherwise lgtm

@mgree mgree left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TEMP_OLDPWD is no good... let's find a different test.

Comment thread try Outdated
#!/bin/sh

unset START_DIR SANDBOX_DIR UNION_HELPER DIRS_AND_MOUNTS TRY_EXIT_STATUS
unset START_DIR SANDBOX_DIR UNION_HELPER DIRS_AND_MOUNTS TRY_EXIT_STATUS TRY_COMMAND UPDATED_DIRS_AND_MOUNTS

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with @ezrizhu , we should unset TRY_SHELL.

Comment thread try Outdated

#TEMP_OLDPWD is for testing purposes
export "OLDPWD"="$OLDPWD"
export "TEMP_OLDPWD"="$OLDPWD"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not have behaviors like this "for testing purposes". Why do we need this?

@mgree
mgree merged commit e676e83 into binpash:main Nov 7, 2025
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