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

Exported universal variable updated in another fish instance is not reflected to exported variables #6612

Closed
norio-nomura opened this issue Feb 16, 2020 · 3 comments
Labels
bug Something that's not working as intended
Milestone

Comments

@norio-nomura
Copy link
Contributor

Exported universal variable updated in another fish instance is not reflected to exported variables until any operation is performed on exported variables.

$ set --show UV; env|grep UV
$UV: not set in local scope
$UV: not set in global scope
$UV: not set in universal scope

$ fish -c 'set -Ux UV 1'; set --show UV; env|grep UV
$UV: not set in local scope
$UV: not set in global scope
$UV: set in universal scope, exported, with 1 elements
$UV[1]: length=1 value=|1|

UV=1
$ fish -c 'set -Ux UV 2'; set --show UV; env|grep UV
$UV: not set in local scope
$UV: not set in global scope
$UV: set in universal scope, exported, with 1 elements
$UV[1]: length=1 value=|2|

UV=1
$ fish -c 'set -Ux UV 3'; set --show UV; env|grep UV
$UV: not set in local scope
$UV: not set in global scope
$UV: set in universal scope, exported, with 1 elements
$UV[1]: length=1 value=|3|

UV=1
$ set -lx unrelated; set --show UV; env|grep UV
$UV: not set in local scope
$UV: not set in global scope
$UV: set in universal scope, exported, with 1 elements
$UV[1]: length=1 value=|3|

UV=3
$ fish --version
fish, version 3.1.0
$ echo $version
3.1.0
@krobelus krobelus added the bug Something that's not working as intended label Feb 16, 2020
@krobelus krobelus added this to the fish 3.2.0 milestone Feb 16, 2020
@krobelus
Copy link
Member

krobelus commented Feb 16, 2020

Thanks for the report, should be fixed now!
Tagging for 3.2.0 but could also go into 3.1.1 since this is a bug fix.

@faho faho modified the milestones: fish 3.2.0, fish 3.1.1 Feb 16, 2020
@faho
Copy link
Member

faho commented Feb 16, 2020

Tagging for 3.1.1 because that's easier to pick up.

We can still decide to drop it from 3.1.1.

@norio-nomura
Copy link
Contributor Author

Thanks! 🙏

zanchey pushed a commit that referenced this issue Feb 22, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 17, 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