This commit is contained in:
Jan Nieuwenhuizen 2018-11-14 22:49:06 +01:00
parent b6340bd612
commit 303746a4bc
3 changed files with 6 additions and 0 deletions

View File

@ -75,6 +75,7 @@ tests="
41-dot
50-iohere
50-iohere-builtin
50-redirect
50-redirect-space
50-redirect-in

View File

@ -188,6 +188,8 @@
#'(with-output-to-file file-name (command word ...)))
((_ word ... (io-redirect "2" (io-file ">" file-name)))
#'(with-error-to-file file-name (command word ...)))
((_ word ... (io-redirect (io-here "<<" (io-here-document string))))
#'(pipeline (cut display string) (command word ...)))
((_ word ...)
#'(exec-command word ...)))))

View File

@ -0,0 +1,3 @@
\cat <<EOF
foobar
EOF