backticks: use interpolate to allow parameterized commands.
parent
e5b12a1c59
commit
2db2cab09d
|
@ -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! ;
|
||||||
|
|
Loading…
Reference in New Issue