1.1 --- a/scripts/crosstool-NG.sh.in Sun Oct 14 23:46:15 2012 +0000
1.2 +++ b/scripts/crosstool-NG.sh.in Thu Oct 11 14:39:41 2012 +1000
1.3 @@ -25,6 +25,14 @@
1.4 . .config.2
1.5 # Yes! We can do full logging from now on!
1.6
1.7 +# If we want an interactive debug-shell, we must ensure these FDs
1.8 +# are indeed connected to a terminal (and not redirected in any way).
1.9 +if [ "${CT_DEBUG_INTERACTIVE}" = "y" -a ! \( -t 0 -a -t 6 -a -t 2 \) ]; then
1.10 + CT_DoLog ERROR "Can't spawn interactive debug-shell,"
1.11 + CT_DoLog ERROR "because stdout/stderr has been redirected."
1.12 + exit 1
1.13 +fi
1.14 +
1.15 # Override the locale early, in case we ever translate crosstool-NG messages
1.16 if [ -z "${CT_NO_OVERIDE_LC_MESSAGES}" ]; then
1.17 export LC_ALL=C