aboutsummaryrefslogtreecommitdiff
path: root/tecstate.c
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2011-07-18 13:21:50 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2011-07-18 13:21:50 +0200
commit1c813061532c2f664994d10da7ad1449d9ff523d (patch)
treebe9000c9bc687b8d82e9d4588f1116edcc4541ec /tecstate.c
parent8fb00e474e9274ab8840b2fd35c4dc083ddaa3f2 (diff)
downloadvideoteco-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.c6
1 files changed, 2 insertions, 4 deletions
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;