bazaar.conf::editor line quoting is not preserved correctly
Bug #191651 reported by
Jari Aalto
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
Consider following line:
# ~/.bazaar/
[DEFAULT]
editor = emacs --no-site-file -q -nw --eval "(setq backup-inhibited t)"
When editor is invoked with:
bzr ci
The Emacs editor command is not called correctly. Judging from Emacs
buffer *Messages*, the call was made using excessive quotes:
("emacs" "-q" "--no-site-file" "--eval" "\"(setq" "backup-inhibited" "t)\"" "bzr_log.DCPFDq")
command-line-1: End of file during parsing
It would appear, that bzr just quotes every word separated by space
when passing arguments to exec(), which in effect - is not the correct result.
Changed in bzr: | |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
description: | updated |
tags: | added: check-for-breezy |
To post a comment you must log in.
try to put command line in bazaar.conf in triple apostrofes ['], like this:
editor = '''emacs --no-site-file -q -nw --eval "(setq backup-inhibited t)"'''