]> _ Git - alire.git/commit
Fix the example for editor.cmd (#1313)
authorManuel <mgrojo@gmail.com>
Tue, 7 Feb 2023 13:12:53 +0000 (14:12 +0100)
committerGitHub <noreply@github.com>
Tue, 7 Feb 2023 13:12:53 +0000 (14:12 +0100)
commit3b7b139049eb11a05f50c557855c35af88f5fb4e
tree893e6c35ebc97525963118642a944c908aa46c64
parentfcc48191b0bbb52e0670075b77a85b95bb80b628
Fix the example for editor.cmd (#1313)

Using double quotes, the  ${GPR_FILE} is interpreted as a variable by Bourne-like shells and evaluated to an empty string or whatever value has when executed. Single quotes is a way to avoid that evaluation.

This example will not make Emacs select and load the GPR_FILE as the project file for ada-mode, that would be more cumbersome (and requires ada-mode 8.0.3), but I didn't want to complicate the example:
```
alr config --set --global editor.cmd 'emacs --eval=(ada-build-prompt-select-prj-file"${GPR_FILE}") ${GPR_FILE}'
```
doc/user-changes.md