Use concat
to append the string resulting from calling elfeed-entry-link
to the end of the shell command:
(insert "["
(shell-command-to-string
(concat "~/lombardi/http_fetch.sh " (shell-quote-argument (elfeed-entry-link entry))))
"]")
The shell-quote-argument
protects the command in case the result of elfeed-entry-link
contains shell metacharacters or whitespace. (EDIT: removed manual quoting originally suggested here and used shell-quote-argument
instead, thanks to the comment from @phils.)
Note also that the result of shell-command-to-string
will most likely include a final newline, so be sure to strip it out if you don't want it.