+2006-07-28 Paul Varner <fuzzyray@gentoo.org>
+ * revdep-rebuild: Fix revdep-rebuild to correctly handle --ask being
+ passed to emerge. Thanks to Sal Gonzalez <ghostx@optonline.net> for
+ the patch. (Bug #37485)
+
2006-07-07 Paul Varner <fuzzyray@gentoo.org>
* revdep-rebuild: Rename --no-path to --no-ld-path and change
functionality to not set LD_LIBRARY_PATH. This fixes bug #96946 as
echo
fi
+# Link file descriptor #6 with stdin
+exec 6<&0
+
# Run in background to correctly handle Ctrl-C
(
- EMERGE_DEFAULT_OPTS="" emerge --oneshot $EMERGE_OPTIONS $REBUILD_LIST
+ EMERGE_DEFAULT_OPTS="" emerge --oneshot $EMERGE_OPTIONS $REBUILD_LIST <&6
echo $? >$LLIST.6_status
) &
wait
+# Now restore stdin from fd #6, where it had been saved, and close fd #6 ( 6<&- ) to free it for other processes to use.
+exec 0<&6 6<&-
+
#if $EXACT_EBUILDS ; then
# mv -i /usr/portage/profiles/package.mask.hidden /usr/portage/profiles/package.mask
# trap - SIGHUP SIGINT SIGQUIT SIGABRT SIGTERM