summary refs log tree commit diff
path: root/src/histedit.c
diff options
context:
space:
mode:
authorherbert <herbert@gondor.apana.org.au>2005-03-28 20:28:01 +1000
committerHerbert Xu <herbert@gondor.apana.org.au>2005-09-26 18:33:05 +1000
commit71d448c29c85afd16a4feb68b23fde6c8cf02875 (patch)
tree2414dda91f580f2c124522b41c244f0eb528acfa /src/histedit.c
parentRemoved unnecessary inclusion of eval.h from parser.c. (diff)
downloaddash-71d448c29c85afd16a4feb68b23fde6c8cf02875.tar.gz
dash-71d448c29c85afd16a4feb68b23fde6c8cf02875.zip
Added eflag fixes for trap and minusc.
Let evaltree handle traps from cmdloop.
Reset evalskip after minusc is executed.
Stop executing traps once SKIPEVAL is seen.
Diffstat (limited to 'src/histedit.c')
-rw-r--r--src/histedit.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/histedit.c b/src/histedit.c
index 0d435cd..9c5656b 100644
--- a/src/histedit.c
+++ b/src/histedit.c
@@ -383,7 +383,8 @@ histcmd(int argc, char **argv)
 					out2str(s);
 				}
 
-				evalstring(strcpy(stalloc(strlen(s) + 1), s));
+				evalstring(strcpy(stalloc(strlen(s) + 1), s),
+					   ~0);
 				if (displayhist && hist) {
 					/*
 					 *  XXX what about recursive and
@@ -407,7 +408,8 @@ histcmd(int argc, char **argv)
 		fclose(efp);
 		editcmd = stalloc(strlen(editor) + strlen(editfile) + 2);
 		sprintf(editcmd, "%s %s", editor, editfile);
-		evalstring(editcmd, 0);	/* XXX - should use no JC command */
+		/* XXX - should use no JC command */
+		evalstring(editcmd, ~0);
 		INTON;
 		readcmdfile(editfile);	/* XXX - should read back - quick tst */
 		unlink(editfile);