zenity

git stderr output can't pipe

痞子三分冷 提交于 2019-11-27 02:42:46
问题 I'm writing a graphical URI handler for git:// links with bash and zenity, and I'm using a zenity 'text-info' dialog to show git's clone output while it's running, using FIFO piping. The script is about 90 lines long, so I won't bother posting it here, but here's the most important lines: git clone "$1" "$target" 2>&1 | cat >> /tmp/githandler-fifo & cat /tmp/githandler-fifo | zenity --text-info --text='Cloning git repository' & I'm using FIFO instead of a direct pipe to allow them to run