How to catch Git STDOUT while redirecting STDERR to dialog?
I'm trying to catch stdout from git status changes into an array and redirect any stderr output to dialog; so far I've tried: IFS=$'\n' gitStatus=( $( git --no-pager -c color.status=false status --short --untracked-files=all 2> >( dialog --sleep 1 --input-fd 0 --progressbox 'Checking index...' 12 75 >/dev/tty ) ) ) exec 3> >(dialog --progressbox 10 50 --input-fd 0 >/dev/tty) gitStatus=( $( git --no-pager -c color.status=false status --short --untracked-files=all 2>&3 ) ) exec 3>&- But neither approach will output the refresh index progress properly via dialog --progressbox How can this be achi
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.