summaryrefslogtreecommitdiffstats
path: root/package/crosstool-ng/crosstool-ng-001-fix-showtuple-stdout.patch
blob: 416ef76da4b70569a8e4d43cf57c23af3474ad6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
changeset:   3141:d8bd17248789
tag:         tip
user:        "Yann E. MORIN" <yann.morin.1998@free.fr>
date:        Sun Jan 06 12:08:33 2013 +0100
files:       scripts/showTuple.sh.in
description:
scripts/showTuple: fix stdout

Since we've had the debug shell feature, fd #7 is now used to
redirect stderr, while it was previously unused.

Use fd #9 to redirect stdout.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>


diff --git a/scripts/showTuple.sh.in b/scripts/showTuple.sh.in
--- a/scripts/showTuple.sh.in
+++ b/scripts/showTuple.sh.in
@@ -7,7 +7,7 @@
 . "${CT_LIB_DIR}/paths.sh"
 
 # We'll need the stdout later, save it
-exec 7>&1
+exec 9>&1
 
 # Parse the common functions
 . "${CT_LIB_DIR}/scripts/functions"
@@ -27,4 +27,4 @@
 CT_DoBuildTargetTuple
 
 # All this for this single echo... :-( Sigh, I'll have to re-arrange things...
-echo "${CT_TARGET}" >&7
+echo "${CT_TARGET}" >&9