backticks: use interpolate to allow parameterized commands.
parent
e5b12a1c59
commit
2db2cab09d
|
@ -1,9 +1,11 @@
|
|||
! Copyright (C) 2015 John Benediktsson
|
||||
! 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
|
||||
|
||||
SYNTAX: `
|
||||
"`" parse-multiline-string
|
||||
'[ _ utf8 [ contents ] with-process-reader ]
|
||||
append! ;
|
||||
"`" parse-multiline-string '[
|
||||
_ interpolate>string
|
||||
utf8 [ contents ] with-process-reader
|
||||
] append! ;
|
||||
|
|
Loading…
Reference in New Issue