command.js: pipe flushing after execution

appexec.js: vdisk mounting
This commit is contained in:
minjaesong
2023-05-13 01:22:18 +09:00
parent 4cb9c02fd2
commit 3ab09de8db
3 changed files with 26 additions and 1 deletions

View File

@@ -798,7 +798,7 @@ _TVDOS.DRV.FS.DEVTMP.mkDir = (fd) => {
return true
}
_TVDOS.DRV.FS.DEVTMP.mkFile = (fd) => {
_TVDOS.TMPFS[fd.path] = new PmemFSfile(fd.path)
_TVDOS.TMPFS[fd.path] = new PmemFSfile("")
return true
}
_TVDOS.DRV.FS.DEVTMP.remove = (fd) => {

View File

@@ -802,6 +802,10 @@ shell.execute = function(line) {
}
}
serial.println("[shell.execute] final retvalue: "+retValue)
// flush pipes
while (1) { if (undefined === shell.removePipe()) break }
return retValue
}
shell.pipes = {} // syntax: _G.shell.pipes[name] = contents; all pipes are named pipes just like in Windows