On macOS, the tool ghi (GitHub Issues on the command line) adds the following to ~/.gitconfig:
[ghi]
token = !security find-internet-password -a username -s github.com -l 'ghi token' -w
It is my understanding that by starting with a !, it means that is a shell command. And indeed it is, as executing it returns the correct authentication token (stored in the macOS Keychain). But running git config --get ghi.token returns the command itself (with !), instead of its result, which was what I was expecting because it seems that ghi would use that to retrieve the key.
What is the git command, if any, to return the result of the command, instead of the command itself?