On 04/03/13 04:48, William Giokas wrote: > This is a version two of the original pacman script color patches that I > sent in. This includes three new patches, and a fix to the first patch so > that I don't break `pkgver()` functions in makepkg. > > --- > > Originally, output_format.sh sent some messages to sdtout and some to > stderr, but this patch set sends all messages formatted by output_format to > stderr making separation of script output and child processes easy to > separate. The QUIET variable can be used to get the equivalent of only > printing stderr. I'm going to start working on using a flag to determine > where the messages from output_format go, as per Dave's suggestion. >
Just because makepkg does things wrong and prints to stderr does not mean other scripts should. Only error output should got to stderr unless there is a very good reason. The previous version was correct. makepkg has to - or at least requires more complex handling - in order to keep "makepkg -g >> PKGBUILD" working
