Score:0

Won't `expression` be susbtituted by an expression in a bash command?

us flag

I'm trying to substitute

cargo run --example sync_tun -- --tun tun1 172.217.1.14 80

by

cargo run --example sync_tun -- --tun tun1 `dig google.com +short` 80

shouldn't dig google.com +short be substituted by the ip?

hr flag
It should, although backticks for command substitution are deprecated - `$(dig google.com +short)` is preferred. If that's not happening, then please update your question with more details.
cc flag
Turn on the -vx switches for bash and try your command. You get the input line and the line that gets executed (after all sorts of substitutions). e.g. bash -vx command, or set -vx ...etc.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.