1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-26 22:55:47 +01:00

Added :write !cmd and :write >>file.

This commit is contained in:
Kris Maglione
2010-10-04 19:36:19 -04:00
parent 9b3e28cb42
commit a21c2510e3
4 changed files with 57 additions and 7 deletions

View File

@@ -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'