[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "sed --debug" feature

From: Eric Blake
Subject: Re: "sed --debug" feature
Date: Fri, 27 Jul 2018 08:00:41 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0

On 07/27/2018 05:28 AM, Assaf Gordon wrote:
Hi all,

While investigating the two recent bugs [1][2],
I developed some debugging code for sed, which makes
troubleshooting much easier.


It turns cryptic code into more readable sed code:

Second, it also traces step-by-step each command
while printing the pattern/hold buffers:

I'm not sure this should go into mainline sed (too specialized and border-line bloat), but I thought to share it here for future reference.

comments welcomed,

I think it is actually fine for mainline - the number of user bugs we've been able to identify with 'sort --debug', and more recently 'date --debug', makes things like this worth their weight in gold.

Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization: |

reply via email to

[Prev in Thread] Current Thread [Next in Thread]