Explain why header goes on stderr

This commit is contained in:
Chuck 2019-09-16 09:35:38 -07:00 committed by Linus Heckemann
parent 94a068fe36
commit 2ddd2d0760

View file

@ -430,8 +430,8 @@ void printOption(Context & ctx, Out & out, const std::string & path, Value & opt
void printListing(Out & out, Value & v)
{
// Print this header on stderr rather than stdout because the old shell script
// implementation did. I don't know why.
// Print this header on stderr rather than stdout, presumably to make it
// slightly easier to consume this output in other tools.
std::cerr << "This attribute set contains:\n";
for (const auto & a : v.attrs->lexicographicOrder()) {
std::string name = a->name;