From 1c813061532c2f664994d10da7ad1449d9ff523d Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Mon, 18 Jul 2011 13:21:50 +0200 Subject: 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 --- tecstate.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tecstate.c') diff --git a/tecstate.c b/tecstate.c index d93fa52..7edd404 100644 --- a/tecstate.c +++ b/tecstate.c @@ -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; -- cgit v1.2.3