The world is littered with broken grep commands because xrdb -query
can only dump the database and doesn't implement this simple search
feature.
Things I tested:
-
xrdb -querywithout arguments works the same as before -
xrdb -query propprints the value ofpropwhen it exists in the resource database. -
xrdb -query propdoesn't print anything whenpropdoesn't exist in the resource database. -
xrdb -query propdoesn't leak any memory. I run it in valgrind with the--leak-check=fulloption.
PS: I think Sun took care of the fputs thing by now.