This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA 0/4] Implement | (pipe) command.
- From: Abhijit Halder <abhijit dot k dot halder at gmail dot com>
- To: Philippe Waroquiers <philippe dot waroquiers at skynet dot be>
- Cc: "gdb-patches at sourceware dot org ml" <gdb-patches at sourceware dot org>
- Date: Tue, 23 Apr 2019 02:14:48 +0530
- Subject: Re: [RFA 0/4] Implement | (pipe) command.
- References: <20190420212153.30934-1-philippe.waroquiers@skynet.be>
Hi Philippe,
If I see it correctly, the syntax of the command is
pipe <gdb command> | <shell command>
If the gdb command contains '|' the above syntax will be a problem.
I suggest below syntax
pipe <delimiter> <gdb command> <delimiter> <shell command>
Here the advantage is the delimiter can be anything and conveniently be
chosen by the user.
I made a similar attempt few years back.
https://sourceware.org/ml/gdb-patches/2012-01/msg00098.html
This you can take this as a reference.
Thanks,
Abhijit Halder
On Sun, Apr 21, 2019 at 2:52 AM Philippe Waroquiers <
philippe.waroquiers@skynet.be> wrote:
> This patch series adds the pipe command, that allows to send the output
> of a GDB command to a shell command.
>
> The first patch allows a command to repeat a previous command.
> Currently only used by the pipe command added in this series, but
> the idea is that the slash command will also use this feature to
> repeat a previous command.
>
>
>