backticks: use interpolate to allow parameterized commands.

db4
John Benediktsson 2015-04-20 15:48:56 -07:00
parent e5b12a1c59
commit 2db2cab09d
1 changed files with 6 additions and 4 deletions

View File

@ -1,9 +1,11 @@
! Copyright (C) 2015 John Benediktsson ! Copyright (C) 2015 John Benediktsson
! See http://factorcode.org/license.txt for BSD license ! See http://factorcode.org/license.txt for BSD license
USING: fry io io.encodings.utf8 io.launcher multiline sequences ; USING: fry io io.encodings.utf8 interpolate io.launcher
multiline sequences ;
IN: backticks IN: backticks
SYNTAX: ` SYNTAX: `
"`" parse-multiline-string "`" parse-multiline-string '[
'[ _ utf8 [ contents ] with-process-reader ] _ interpolate>string
append! ; utf8 [ contents ] with-process-reader
] append! ;