[Crash-utility] RFE: feedback loops

Bruce Korb bruce.korb at gmail.com
Mon Feb 13 19:13:24 UTC 2012


A relatively easy implementation would be to fiddle shell commands:

			if (LASTCHAR(p) == '|')
				error(FATAL_RESTART, "pipe to nowhere?\n");

to interpret pipes to nowhere to, instead, be redirecting to a mkstemp file
that gets read back in via an internal:
    sprintf(pc->command_line, "< %s", tmp_file);
after the command completes, and
    unlink(tmp_file);
after *those* commands complete.

What you already have works.  It's that this would be slick :).
It would make shell scripting into a crash extension language.




More information about the Crash-utility mailing list