# HG changeset patch # User Mychaela Falconia # Date 1613859234 0 # Node ID 7305f2e63d66aaef629d140fc4f1d1a585855675 # Parent 9c10afbb745a73efb5231c9e46ec3bdddc6dbb34 fc-simtool: '!' escape in command dispatch diff -r 9c10afbb745a -r 7305f2e63d66 simtool/dispatch.c --- 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++;