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
Milestone

Comments

@vvug
Copy link

@vvug 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 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 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
@ridiculousfish ridiculousfish removed this from the fish-future milestone Jul 21, 2019
@ridiculousfish ridiculousfish added this to the fish 3.1.0 milestone Jul 21, 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
Projects
None yet
Development

No branches or pull requests

3 participants