A sane command writes the output that you request to standard output (stdout) and only writes errors to standard error (stderr).
For example:
dig +short A wiki.sharewiz.net 5.42.134.35 ip=$(dig +short A wiki.sharewiz.net) echo "{$ip}" {5.42.134.35} ls no-such-file ls: cannot access 'no-such-file': No such file or directory output=$(ls no-such-file) ls: cannot access 'no-such-file': No such file or directory echo "{$output}" {}
NOTE: In this example: