pipe does not work
Project: | JNode Shell |
Component: | Code |
Category: | bug report |
Priority: | normal |
Assigned: | Stephen Crawley |
Status: | closed |
Description
Pipe does not work.
e.g.:
thread | grep test
says: 'exception in commnad'
- Login to post comments
#1
stacktrace in attachment.
#2
Judging from the stacktrace, the problem is in GrepCommand's handling of its arguments when called with one argument. Not a problem with the shell's pipe implementation as such ...
#3
no. it is not a grep command bug, it's a bug of shell.
Without pipe grep gets an argument in ARG_EXPR. But when using grep after pipe in ARG_EXPR.getValue() == null.
#4
I've checked in a fix. The problem was indeed in the way that the shell was executing commands in a pipeline. It was skipping the step of parsing the arguments, so no argument values were bound when the command's execute method was called.
#5
Automatically closed -- issue fixed for two weeks with no activity.
#6