[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: source code I/O troubles
From: |
gronk |
Subject: |
Re: source code I/O troubles |
Date: |
Thu, 12 Oct 2023 19:06:51 +0000 |
Hi, thanks for responding. I'm currently aiming to modify the output for an
alternate bash terminal that I probably won't use lol. To keep it simple, for
now all I want to do is keep count of the commands run, and print that number
above the output of the command run.
Thanks for all your help
-gronk
-------- Original Message --------
On 12 Oct 2023, 12:39, Zachary Santer wrote:
> What's your goal, here? Just to look at it, or do you want to modify some
> behavior in particular? I've never patched Bash, but you can look at how Bash
> syntax is parsed in parse.y, y.tab.c, and y.tab.h. Each command Bash calls,
> including builtin commands, generates its own output. You can look at the
> implementations of Bash builtins that generate output, like printf and echo,
> in the builtins/ directory. On Tue, Oct 10, 2023 at 2:51 PM gronk via wrote:
> > > Hey there, i've downloaded the source code for bash but i'm struggling to
> locate the specific files that handle input and give output, and even if i
> found it I wouldn't know where the specific code blocks were. any help is
> appreciated