diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2011-07-18 13:21:50 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2011-07-18 13:21:50 +0200 |
commit | 1c813061532c2f664994d10da7ad1449d9ff523d (patch) | |
tree | be9000c9bc687b8d82e9d4588f1116edcc4541ec /tecstate.c | |
parent | 8fb00e474e9274ab8840b2fd35c4dc083ddaa3f2 (diff) | |
download | videoteco-fork-1c813061532c2f664994d10da7ad1449d9ff523d.tar.gz |
revised EC command
unidirectional pipe with no arguments. with one/two arguments,
the buffer content is piped into the process and replaced with
its output.
* fixed error handling, now the child's exit status matters
if everything else is OK, as well
* colon modifier has standard behaviour of returning the command
status
Diffstat (limited to 'tecstate.c')
-rw-r--r-- | tecstate.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -822,10 +822,8 @@ register struct cmd_token *oct = NULL; * into the edit buffer. */ case 'C': case 'c': - if(ct->ctx.iarg1_flag == YES){ - ct->execute_state = EXEC_C_ECCOMMAND; - ct->ctx.state = STATE_C_INITIALSTATE; - return; + if(ct->ctx.flags & CTOK_M_COLON_SEEN){ + ct->ctx.flags |= CTOK_M_STATUS_PASSED; }/* End IF */ ct->ctx.state = STATE_C_STRING; |