Package: devscripts
Version: 2.19.2
Severity: wishlist

Hi,

please correct me if I'm wrong but could annotate-output not be greatly
simplified by using this proof-of-concept:

        handler () {
                while IFS= read -r line || [ -n "$line" ]; do
                        printf "%s %s: %s\n" "$(date --iso-8601=seconds)" "$1" 
"$line"
                done
        }
        
        { "$@" 2>&1 1>&3 3>&- | handler E; } 3>&1 1>&2 | handler O

So the script would loose some complexity and would not have as much
stuff in the background anymore like processes and temporary files it
needs to clean up. It could:

 - remove cleanup exit trap
 - no temporary directory
 - no temporary fifos
 - no background processes to start and cleanup

Am I missing an obvious reasons why fifos are used instead?

Thanks!

cheers, josch

Reply via email to