Skip to content

Conversation

alenakhineika
Copy link
Contributor

@alenakhineika alenakhineika commented Sep 22, 2021

A user can specify something in the editor that contains multiple parts (eg EDITOR='nano -cA' or EDITOR='code --wait'). We could spawn the editor using a shell flag to support the following cases:

EDITOR=code
EDITOR=C:\Program Files\Editor\editor.exe
EDITOR="code --wait"

Since we cannot easily distinguish between the semantics of the spaces between cases 2 and 3, we will need the OS shell to do that for us.

@alenakhineika alenakhineika changed the title feat: handle editor specifies as name with multiple parts MONGOSH-996 MONGOSH-996: Handle editor specifies as name with multiple parts Sep 22, 2021
@addaleax addaleax changed the title MONGOSH-996: Handle editor specifies as name with multiple parts feat(editor): handle editor specifies as name with multiple parts MONGOSH-996 Sep 22, 2021
@alenakhineika alenakhineika merged commit c9d665b into main Sep 22, 2021
@alenakhineika alenakhineika deleted the MONGOSH-996-editor-name-with-multiple-parts branch September 22, 2021 13:11
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