1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-12 02:35:37 +02:00

Fix Bug 476888 - msg on each Terminal open: "bash: mc: line 1: syntax

error: unexpected end of file" ??
This commit is contained in:
Uwe Stieber 2015-09-09 14:39:38 +02:00
parent f1f1d06b78
commit d2350826e8

View file

@ -179,13 +179,14 @@ public class Env {
if (func > 0) {
key = line.substring(0, func);
// scan until we find the closing '}' with no following chars
value = line.substring(func + 1);
value = "'" + line.substring(func + 1); //$NON-NLS-1$
while (line != null && !line.equals("}")) { //$NON-NLS-1$
line = reader.readLine();
if (line != null) {
value += line;
value += " " + line; //$NON-NLS-1$
}
}
value += "'"; //$NON-NLS-1$
line = reader.readLine();
} else {
int separator = line.indexOf('=');