pinokiod 3.19.55 → 3.19.57
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 +22 -22
- package/package.json +1 -1
package/kernel/shell.js
CHANGED
|
@@ -265,28 +265,28 @@ class Shell {
|
|
|
265
265
|
this.args = ["--noprofile", "--norc"]
|
|
266
266
|
//this.args = [ "--login", "-i"]
|
|
267
267
|
this.EOL = "\n"
|
|
268
|
-
if (this.platform === "win32") {
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
}
|
|
268
|
+
//if (this.platform === "win32") {
|
|
269
|
+
// console.log("before transform this.env", this.env)
|
|
270
|
+
// for(let key in this.env) {
|
|
271
|
+
// let val = this.env[key]
|
|
272
|
+
// if (val && typeof val === "string") {
|
|
273
|
+
// // split with ;
|
|
274
|
+
// let chunks = val.split(";")
|
|
275
|
+
// let transformed_chunks = []
|
|
276
|
+
// for(let chunk of chunks) {
|
|
277
|
+
// if (path.isAbsolute(chunk)) {
|
|
278
|
+
// let transformed = :normalize(chunk)
|
|
279
|
+
// transformed = "/" + transformed.replace(":", "")
|
|
280
|
+
// transformed_chunks.push(transformed)
|
|
281
|
+
// } else {
|
|
282
|
+
// transformed_chunks.push(chunk)
|
|
283
|
+
// }
|
|
284
|
+
// }
|
|
285
|
+
// this.env[key] = transformed_chunks.join(";")
|
|
286
|
+
// }
|
|
287
|
+
// }
|
|
288
|
+
// console.log("after transform this.env", this.env)
|
|
289
|
+
//}
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
292
|
console.log({ shell: this.shell, args: this.args, eol: this.EOL })
|