Skip to content

Include $ans in Special Variables - #2244

Merged
fdncred merged 1 commit into
nushell:mainfrom
pimgit0:patch-1
Sep 17, 2026
Merged

fdncred merged 1 commit into
nushell:mainfrom
pimgit0:patch-1

Conversation

@pimgit0

@pimgit0 pimgit0 commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Added a short section to the Special Variables page about the recently-added $ans variable, re:

Many of these are mentioned or documented in other places in this Book, but this page should include all variables for reference.

@fdncred

fdncred commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

We may need to look at this again. It would be nicer to "just work" with externals but we can proceed with this for now. Thanks!

@fdncred
fdncred merged commit 8fd123b into nushell:main Sep 17, 2026
2 checks passed
@pimgit0

pimgit0 commented Sep 17, 2026

Copy link
Copy Markdown
Contributor Author

I imagine it would be hard to balance between what kind of external command outputs should and shouldn't overwrite in a way that feels natural to the end-user.

@fdncred

fdncred commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

indeed. when writing it i remember there being issues of things like fzf hanging and fighting over who owns the terminal. not sure it can be easily fixed.

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

Successfully merging this pull request may close these issues.

2 participants