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

Unable to echo env variables in nushell #5684

Closed
wymli opened this issue May 30, 2022 · 2 comments
Closed

Unable to echo env variables in nushell #5684

wymli opened this issue May 30, 2022 · 2 comments

Comments

@wymli
Copy link

wymli commented May 30, 2022

Describe the bug

I can't echo $SHELL in nushell, but I can see that it does exist in env.

How to reproduce

  1. download the pre-built binary from github-release
  2. add to $path
  3. exec nu

Expected behavior

show $SHELL

Screenshots

image

Configuration

/home/liweiming〉version | transpose key value | to md --pretty 05/30/2022 07:26:06 PM| key | value |
| ------------------ | ----------------------------------------------- |
| version | 0.63.0 |
| branch | |
| commit_hash | 06cf3fa |
| build_os | linux-x86_64 |
| build_target | x86_64-unknown-linux-gnu |
| rust_version | rustc 1.61.0 (fe5b13d68 2022-05-18) |
| rust_channel | stable-x86_64-unknown-linux-gnu |
| cargo_version | cargo 1.61.0 (a028ae4 2022-04-29) |
| pkg_version | 0.63.0 |
| build_time | 2022-05-25 01:07:50 +00:00 |
| build_rust_channel | release |
| features | database, dataframe, default, trash, which, zip |
| installed_plugins | |

Additional context

No response

@sholderbach
Copy link
Member

Environment variables are members of the record in the $env variable. So in this case echo $env.SHELL

@wymli
Copy link
Author

wymli commented May 30, 2022

Thanks

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

No branches or pull requests

2 participants