In the linux shell (zsh), I would like to pass an argument to an environment variable to…
- User
In the linux shell (zsh), I would like to pass an argument to an environment variable to become active when the shell starts. The variable is EDITOR and I would like to set it to "emacs -nw", so I set it like this EDITOR="emacs -nw". But when I enter $EDITOR from my terminal, it says: "command not found: emacs -nw". Without "-nw" there is no problem. How do I set an environment variable to contain an argument?
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.