[ 
https://issues.apache.org/jira/browse/GROOVY-11742?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18015822#comment-18015822
 ] 

Paul King commented on GROOVY-11742:
------------------------------------

Not all relevant commands yet allow the variables to be subsequently used.

> posix commands should support variable assignment
> -------------------------------------------------
>
>                 Key: GROOVY-11742
>                 URL: https://issues.apache.org/jira/browse/GROOVY-11742
>             Project: Groovy
>          Issue Type: Improvement
>            Reporter: Paul King
>            Assignee: Paul King
>            Priority: Major
>             Fix For: 5.0.1
>
>
> to support commands like:
> {code}
> groovy> gFiles=/ls --1 *.groovy
> groovy> mlFiles=/ls --1 *ml
> groovy> [gFiles, mlFiles]*.size()
> [4, 7]
> groovy> /grep -H answers.* $gFiles $mlFiles
> answers.groovy
> answers.toml
> answers.xml
> answers.yaml
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to