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

Can't export empty universal variables #5992

Closed
vvug opened this issue Jul 15, 2019 · 1 comment
Closed

Can't export empty universal variables #5992

vvug opened this issue Jul 15, 2019 · 1 comment
Labels
bug Something that's not working as intended
Milestone

Comments

@vvug
Copy link

vvug commented Jul 15, 2019

This is pretty easy to reproduce:

~> # The XYZ env variable is not set:
~> env | grep XYZ
~> # Let's set it:
~> set -x XYZ
~> env | grep XYZ
XYZ=
~> # It's set. Now the same with a universal variable:
~> env | grep UVW
~> set -Ux UVW
~> env | grep UVW
~> # Not set!
~> fish --version
fish, version 3.0.2
~> echo $version
3.0.2
@vvug vvug changed the title Can't set empty universal variable Can't set empty universal variables Jul 15, 2019
@zanchey
Copy link
Member

zanchey commented Jul 16, 2019

The variable is set, but not exported:

> set -gx XYZ
> env | grep XYZ
XYZ=
> set --erase XYZ
> set -Ux XYZ
> env | grep XYZ
> set --show XYZ
$XYZ: not set in local scope
$XYZ: not set in global scope
$XYZ: set in universal scope, exported, with 0 elements

@zanchey zanchey added the bug Something that's not working as intended label Jul 16, 2019
@zanchey zanchey added this to the fish-future milestone Jul 16, 2019
@zanchey zanchey changed the title Can't set empty universal variables Can't export empty universal variables Jul 16, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something that's not working as intended
Projects
None yet
Development

No branches or pull requests

3 participants