So I'm running commands in a bash shell script, and I want to ONLY capture error output in a variable. Any standard output I want suppressed.
So far what I have definitely isn't working. So I'm trying to come up with a better idea, and struggling to find an answer.
Here's a code sample:
ERROR=$(svn switch "$NEW_URL" --accept postpone 1>/dev/null 2>&1) &
Looks like everything is getting suppressed. Any help would be appreciated. Thanks.