From 2db2cab09d32e6b15445b9c1efc7b8277730a5e5 Mon Sep 17 00:00:00 2001 From: John Benediktsson Date: Mon, 20 Apr 2015 15:48:56 -0700 Subject: [PATCH] backticks: use interpolate to allow parameterized commands. --- extra/backticks/backticks.factor | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/extra/backticks/backticks.factor b/extra/backticks/backticks.factor index 4f51047819..dc0643316f 100644 --- a/extra/backticks/backticks.factor +++ b/extra/backticks/backticks.factor @@ -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! ;