diff simtool/dispatch.c @ 131:7305f2e63d66

fc-simtool: '!' escape in command dispatch
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 20 Feb 2021 22:13:54 +0000
parents 7faec607500f
children d991944aa5f3
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++;