mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-26 23:55:46 +01:00
Added :write !cmd and :write >>file.
This commit is contained in:
@@ -433,7 +433,9 @@ lookup:
|
||||
function escape(str) '"' + str.replace(/[\\"$]/g, "\\$&") + '"';
|
||||
|
||||
return this.withTempFiles(function (stdin, stdout, cmd) {
|
||||
if (input)
|
||||
if (input instanceof File)
|
||||
stdin = input;
|
||||
else if (input)
|
||||
stdin.write(input);
|
||||
|
||||
// TODO: implement 'shellredir'
|
||||
|
||||
Reference in New Issue
Block a user