Run $EDITOR through the shell in config edit #380

Merged
clawbot merged 1 commits from issue-315-editor-args into next 2026-10-14 03:06:58 +02:00
1 Commits
Author SHA1 Message Date
sneak 0cb1d5f16f Run $EDITOR through the shell in config edit (closes #315)
check / check (push) Waiting to run
config edit used the whole of $EDITOR as the program name, so a value
with arguments such as "code --wait" or "emacsclient -t" failed with
"executable file not found". It now runs $EDITOR the way git does:
sh -c '<editor> "$@"' with the config path as a separate argument, so
the editor's own arguments and quoting work and a path with spaces
reaches it whole. A test runs config edit with an $EDITOR carrying an
argument on a config path that contains a space.

Model: opus-5-5
2026-10-14 00:11:46 +00:00