mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-12 07:44:03 +09:00
some new commands; lfs wip
This commit is contained in:
11
assets/disk0/tvdos/bin/writeto.js
Normal file
11
assets/disk0/tvdos/bin/writeto.js
Normal file
@@ -0,0 +1,11 @@
|
||||
if (exec_args[1] === undefined) {
|
||||
println("Usage: after a pipe,\n writeto filename")
|
||||
return 0
|
||||
}
|
||||
|
||||
if (!_G.shell.hasPipe()) {
|
||||
println("Pipe not opened")
|
||||
return 1
|
||||
}
|
||||
|
||||
files.open(_G.shell.resolvePathInput(exec_args[1]).full).swrite(_G.shell.getPipe())
|
||||
Reference in New Issue
Block a user