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

chore(IDX): use env -u to unset env var #3831

Merged
merged 1 commit into from
Feb 6, 2025
Merged

Conversation

nmattia
Copy link
Contributor

@nmattia nmattia commented Feb 6, 2025

This uses env to modify the command's environment instead of handling this in bash with a temporary variable:

$ export FOO=hello
$ export BAR=world
$ printenv FOO BAR
hello
world
$ env -u BAR printenv FOO BAR
hello

This uses `env` to modify the command's environment instead of handling
this in bash:

```sh
$ export FOO=hello
$ export BAR=world
$ printenv FOO BAR
hello
world
$ env -u BAR printenv FOO BAR
hello
```
@nmattia nmattia requested a review from a team as a code owner February 6, 2025 14:07
@github-actions github-actions bot added the chore label Feb 6, 2025
@nmattia nmattia enabled auto-merge February 6, 2025 14:10
@nmattia nmattia added this pull request to the merge queue Feb 6, 2025
Merged via the queue into master with commit 83f9978 Feb 6, 2025
26 checks passed
@nmattia nmattia deleted the nm-simplify-bazel-test-all branch February 6, 2025 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants