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

prompt not able to export variale #1944

Closed
4 of 9 tasks
Giessen opened this issue Oct 9, 2024 · 1 comment
Closed
4 of 9 tasks

prompt not able to export variale #1944

Giessen opened this issue Oct 9, 2024 · 1 comment
Labels

Comments

@Giessen
Copy link

Giessen commented Oct 9, 2024

Environment details (Put x in the checkbox along with the information)

  • Operating System: WSL2
  • Desktop Environment:
  • Terminal Emulator: Windows Terminal
  • Shell: ZSH
  • Custom desktop opener (if applicable):
  • Program options used:
  • Configuration options set:
  • Plugins are installed
  • Issue exists on nnn master

Exact steps to reproduce the issue

  1. nnn
  2. press ] to fire prompt
  3. type this: export a=0, press ENTER
  4. type this: echo $a, press ENTER
    Current Result: nothing happens.

Any ideas, Thanks.

@Giessen Giessen added the bug label Oct 9, 2024
@N-R-K
Copy link
Collaborator

N-R-K commented Oct 9, 2024

This is expected. Each command is run in a separate shell invocation. And so no state is retained between commands. Use ! if you need a proper shell session.

@N-R-K N-R-K closed this as not planned Won't fix, can't repro, duplicate, stale Oct 9, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Dec 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants