Open jpcirrus opened 2 years ago
Is there a standard / specification behind EDITOR
where we can see if it's normal or not for it to accept arguments?
This looks fine to me by the way, but would like to be apprised of the best practices.
A crumb I Found: https://unix.stackexchange.com/q/77089/18873, https://unix.stackexchange.com/q/4859/18873
I'm not sure about a standard, but have come across numerous .bashrc
s where EDITOR
was exported with arguments, and I've done so for many years without prior issue. The accepted answer at https://stackoverflow.com/a/60461932 mentions "...since an EDITOR
or VISUAL
setting can include command arguments, so supporting word splitting is required."
Is there any update on this?
Step 1: Provide a summary of your problem
tmuxp edit [session-name]
crashes if theEDITOR
environment variable has arguments (i.e. spaces in the string are not considered).Step 2: Provide tmuxp details
Step 3: Describe the problem:
Steps to reproduce:
tmuxp edit main
Observed Results:
Expected Results:
The configuration file should be opened by the editor specified in the
EDITOR
environment variable.Relevant Code:
The issue is fixed by changing lines 14 and 15 of
tmuxp/cli/edit.py
to: