From 88235350061da0cb582c209c1405a8e08eb7b65b Mon Sep 17 00:00:00 2001 From: Eduardo Cavazos Date: Sun, 20 Apr 2008 16:42:57 -0500 Subject: [PATCH 1/2] update: Minor fix --- extra/update/update.factor | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extra/update/update.factor b/extra/update/update.factor index f186837548..9b10ea746f 100644 --- a/extra/update/update.factor +++ b/extra/update/update.factor @@ -1,5 +1,6 @@ USING: kernel system sequences io.files io.launcher bootstrap.image + http.client builder.util builder.release.branch ; IN: update @@ -23,7 +24,7 @@ IN: update : remote-clean-image ( -- url ) "http://factorcode.org/images/clean/" my-boot-image-name append ; -: download-clean-image ( -- ) { "wget" remote-clean-image } run-command ; +: download-clean-image ( -- ) remote-clean-image download ; ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! From 0f30e13295284fc8265f2e8ad80e19866b366623 Mon Sep 17 00:00:00 2001 From: Eduardo Cavazos Date: Sun, 20 Apr 2008 17:17:48 -0500 Subject: [PATCH 2/2] shell: Add backquote expansion --- extra/shell/shell.factor | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/extra/shell/shell.factor b/extra/shell/shell.factor index 57a7a7a327..7f30104e21 100644 --- a/extra/shell/shell.factor +++ b/extra/shell/shell.factor @@ -1,7 +1,7 @@ USING: kernel parser words continuations namespaces debugger - sequences combinators prettyprint - system io io.files io.launcher sequences.deep + sequences combinators splitting prettyprint + system io io.files io.launcher io.encodings.utf8 sequences.deep accessors multi-methods newfx shell.parser ; IN: shell @@ -44,6 +44,19 @@ METHOD: expand { glob-expr } METHOD: expand { factor-expr } expr>> eval unparse ; +DEFER: expansion + +METHOD: expand { back-quoted-expr } + expr>> + expr + ast>> + command>> + expansion + utf8 + contents + " \n" split + "" remove ; + METHOD: expand { object } ; ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!