bug-bash
[Top][All Lists]
Advanced

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

Re: RFE: capture command AND output for display and/or redirection


From: Eric Blake
Subject: Re: RFE: capture command AND output for display and/or redirection
Date: Mon, 29 Apr 2013 15:51:55 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130402 Thunderbird/17.0.5

On 04/28/2013 12:01 PM, todd.dsm@gmail.com wrote:
>> Read this thread for more details:
>>
>> https://lists.gnu.org/archive/html/help-bash/2013-04/msg00031.html
>>
>>
>>
>> In particular, that thread points out:
>>
>> http://mywiki.wooledge.org/BashFAQ/050
>>

> 
> Omitting the set -x from the original post was my error:
> 1) I wouldn't live without it for debugging purposes. 
> 2) set x- creates a lot of "noise" on the screen the suites cannot live with.
> 
> Is there no foundation for this request to make our lives bit more 
> comfortable?

Did you not read the FAQ entry, which mentions that a DEBUG trap that
collects $BASH_COMMAND (both bash extensions) exists as the nicest way
to trace what your script did, and can be used in a way that doesn't
interfere with the stdout/stderr that is already expected in your testsuite.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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