Details
Description
It seems natural to run 'each' over the result of grep, but this causes a NullPointerException. I suppose because GrepAction.execute() returns null rather than list (the ArrayList holding the filtered results).
For example:
> a = [ben bart pen]
ben
bart
pen
> echo $a
[ben, bart, pen]
> b = ($a | grep en)
ben
pen
> each ($b) { echo $it }
Error: java.lang.NullPointerException
> echo $b
Error: java.lang.NullPointerException
> echo ($a size)
3
> echo ($b size)
Error: Command name evaluates to null: $b
Attachments
Issue Links
- links to