shell: Add backquote expansion
parent
f6ec31ef36
commit
0f30e13295
|
@ -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 <process-stream>
|
||||
contents
|
||||
" \n" split
|
||||
"" remove ;
|
||||
|
||||
METHOD: expand { object } ;
|
||||
|
||||
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
|
|
Loading…
Reference in New Issue