[
https://issues.apache.org/jira/browse/FELIX-1487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12745374#action_12745374
]
Guillaume Nodet commented on FELIX-1487:
----------------------------------------
Doesn't your suggestion falls short as soon as you have a pipe ? Given the pipe
takes precedence over the ';', if you have
echo a
echo b | grep b
I think simply adding a ';' would lead to
<echo a ; echo b> | grep b
instead of the intuitive
echo a ; <echo b | grep b>
Additionally, I think we should try to avoid \ at the end of lines when
possible.
I don't think it's a problem for closures, as
each $bundles {
echo starting bundle $it
start $it
}
would be interpreted as
each $bundles { ; echo starting bundle $it ; start $it ; } ;
which should be ok imho.
> Support for commands on multiple lines
> --------------------------------------
>
> Key: FELIX-1487
> URL: https://issues.apache.org/jira/browse/FELIX-1487
> Project: Felix
> Issue Type: Improvement
> Components: Gogo
> Reporter: Guillaume Nodet
>
> I think this is important, especially when writing closures, to be able to
> split commands on multiple lines.
> From the shell, it can't be easily leveraged, unless the command line edition
> also supports multiline edition, but for script files, it would be really
> handy.
> My original thinking would be to consider new lines as ';', but this may
> required changing the precedence order of | and ;
> The other solution would be add a pseudo grouping operator () on each line in
> addition to considering newlines as ';'
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.