changeset 131:7305f2e63d66

fc-simtool: '!' escape in command dispatch
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 20 Feb 2021 22:13:54 +0000
parents 9c10afbb745a
children d991944aa5f3
files simtool/dispatch.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/simtool/dispatch.c	Sat Feb 20 21:54:12 2021 +0000
+++ b/simtool/dispatch.c	Sat Feb 20 22:13:54 2021 +0000
@@ -250,6 +250,8 @@
 		return(0);
 	if (is_script)
 		printf("Script command: %s\n", cp);
+	if (*cp == '!')
+		return system(cp + 1);
 	argv[0] = cp;
 	while (*cp && !isspace(*cp))
 		cp++;