Change EDITOR_LINENUMBER_SWITCH to an environment variable
authorPeter Eisentraut <peter_e@gmx.net>
Sat, 23 Jul 2011 21:25:29 +0000 (00:25 +0300)
committerPeter Eisentraut <peter_e@gmx.net>
Sat, 23 Jul 2011 21:37:11 +0000 (00:37 +0300)
commit70a488878f97eeec09356054fc161b9f8e914257
tree447ca9ad88434f8f260d52cca2f8581b30099fa3
parenteb15f26d577a11319b9429fb84f752a0135918db
Change EDITOR_LINENUMBER_SWITCH to an environment variable

Also change "switch" to "arg" because "switch" is a bit of a sloppy
term.  So the environment variable is called
PSQL_EDITOR_LINENUMBER_ARG.  Set "+" as hardcoded default value on
Unix (since "vi" is the hardcoded default editor), so many users won't
have to configure this at all.  Move the documentation around a bit to
centralize the editor configuration under environment variables,
rather than repeating bits of it under every backslash command that
invokes an editor.
doc/src/sgml/ref/psql-ref.sgml
doc/src/sgml/release-9.1.sgml
src/bin/psql/command.c
src/bin/psql/settings.h