mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-12 10:45: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:
parent
f1f1d06b78
commit
d2350826e8
1 changed files with 3 additions and 2 deletions
|
@ -179,13 +179,14 @@ public class Env {
|
||||||
if (func > 0) {
|
if (func > 0) {
|
||||||
key = line.substring(0, func);
|
key = line.substring(0, func);
|
||||||
// scan until we find the closing '}' with no following chars
|
// 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$
|
while (line != null && !line.equals("}")) { //$NON-NLS-1$
|
||||||
line = reader.readLine();
|
line = reader.readLine();
|
||||||
if (line != null) {
|
if (line != null) {
|
||||||
value += line;
|
value += " " + line; //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
value += "'"; //$NON-NLS-1$
|
||||||
line = reader.readLine();
|
line = reader.readLine();
|
||||||
} else {
|
} else {
|
||||||
int separator = line.indexOf('=');
|
int separator = line.indexOf('=');
|
||||||
|
|
Loading…
Add table
Reference in a new issue