Commit b15fabf9 authored by Peter Eisentraut's avatar Peter Eisentraut

Also process psqlrc when running psql -l

This was previously not very useful, but with many people customizing
the linestyle, it is nice for a consistent appearance.
parent f0053845
...@@ -224,8 +224,12 @@ main(int argc, char *argv[]) ...@@ -224,8 +224,12 @@ main(int argc, char *argv[])
if (options.action == ACT_LIST_DB) if (options.action == ACT_LIST_DB)
{ {
int success = listAllDbs(false); int success;
if (!options.no_psqlrc)
process_psqlrc(argv[0]);
success = listAllDbs(false);
PQfinish(pset.db); PQfinish(pset.db);
exit(success ? EXIT_SUCCESS : EXIT_FAILURE); exit(success ? EXIT_SUCCESS : EXIT_FAILURE);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment