[pca] Feature request, --debug messages to stderr
dpecka
dpecka at techniservit.cz
Thu Oct 1 13:06:16 CEST 2009
On Thu, 2009-10-01 at 11:51 +0200, Martin Paul wrote:
> Daniel,
>
> > thanks for awesome pca.pl .. would you please make sure in future
> > release of pca.pl, that --debug messages will be written *only on stderr
> > rather then stdout?
>
> Good idea, I guess, as it allows to separate normal and debug output.
> I've changed it in the development release of pca now (20091001-01).
>
> There's a small disadvantage, though - to get combined output into a
> file (or piped into "more") one has to use ">&" and "|&" or "2>&1" now
> depending on the shell family.
>
> Martin.
>
well. i think that we can distribute of pca output into following
piesces:
1) stdout << normal output like list of patches & etc
2) stderr:
2.1) headers which could be maintained by -H switch
2.2) --debug messages which should be printed on stderr anyway
but its only my proposal ;) ..
ad.1) i cant see anything useful that in current one are headers printed
on stdout
ad.2) to your mention about *small *disadvantage: what about to add
there a switch, which allows to save --debug into file, like
--debug=$file and if $file not specified, stderr is taken by default ?
--
Best Regards,
Daniel
More information about the pca
mailing list