Skip to content
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

feat(shell): add $PWD and $OLDPWD #6397

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

tthijm
Copy link
Contributor

@tthijm tthijm commented Jul 16, 2024

What's the problem this PR addresses?

Closes #1804.

How did you fix it?

I fixed it by adding a PWD and OLDPWD environment variable and updating it on every cd.

Checklist

  • I have set the packages that need to be released for my changes to be effective.
  • I will check that all automated PR checks pass before the PR gets reviewed.

Comment on lines 127 to 128
state.environment.PWD = resolvedTarget;
state.environment.OLDPWD = state.cwd;
Copy link
Member

Choose a reason for hiding this comment

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

Don't they need to go through npath.fromPortablePath for portability, since they're exposed to third-party tools?

@tthijm
Copy link
Contributor Author

tthijm commented Sep 13, 2024

@merceyz

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.

[Feature] Add "$PWD" shell evaluation
2 participants