From 56da2a1c9b6361e302b7a39fe2740561a9012d88 Mon Sep 17 00:00:00 2001 From: Chris Hall Date: Thu, 21 Jul 2011 19:53:02 +0100 Subject: Update pipework and improve memory reporting. Improve error handling for all new pipework inputs and outputs. Change behaviour of ^C from VTY Terminal, so that will interrupt output and terminate all running pipes -- including running shell commands. In pipe commands, recognise "~/..." and "~user/..." home directory forms. Changed "~/" to mean the usual home for the current user. "~~/" now means the configuration file directory. Introduced "shdir DIR" command to show what is (currently) what. Changed "<|" so that if the command has a path, it is expanded using Quagga's rules (including "~~/" and "~./") and the "here" directory is set to that path. Fixed collection of stderr output from all pipes so that is separate from stdout output, and is always sent to the base output (eg VTY Terminal). Increase amount of information about the heap that "show mem" shows -- particularly if the "memory_tracker" is enabled. Tested and applied resulting fixes. --- lib/command_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/command_parse.c') diff --git a/lib/command_parse.c b/lib/command_parse.c index 81e4ad74..9204db70 100644 --- a/lib/command_parse.c +++ b/lib/command_parse.c @@ -1955,7 +1955,7 @@ cmd_parse_out_pipe(cmd_parsed parsed, cmd_token t) switch (cpp_getch(p)) { case '|': - parsed->out_pipe = cmd_pipe_shell | cmd_pipe_shell_only ; + parsed->out_pipe = cmd_pipe_shell | cmd_pipe_shell_cmd ; break ; case '>': -- cgit v1.2.3