pinokiod 2.15.5 → 2.15.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kernel/shell.js +5 -2
- package/package.json +1 -1
package/kernel/shell.js
CHANGED
|
@@ -189,8 +189,11 @@ class Shell {
|
|
|
189
189
|
if (!/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(key) && key !== "ProgramFiles(x86)") {
|
|
190
190
|
delete this.env[key]
|
|
191
191
|
}
|
|
192
|
-
|
|
193
|
-
|
|
192
|
+
let val = this.env[key]
|
|
193
|
+
if (/[\r\n]/.test(val)) {
|
|
194
|
+
const replaced = val.replaceAll(/[\r\n]+/g, ' ');
|
|
195
|
+
this.env[key] = replaced
|
|
196
|
+
// delete this.env[key]
|
|
194
197
|
}
|
|
195
198
|
}
|
|
196
199
|
|