[Bash-completion-commits] [bash-completion] 01/01: psql: Tell psql to not load .psqlrc as it may change output format (Alioth: #314636)

Igor Murzov garik-guest at moszumanska.debian.org
Mon Jun 2 23:39:12 UTC 2014


This is an automated email from the git hooks/post-receive script.

garik-guest pushed a commit to branch master
in repository bash-completion.

commit 9186add6298cac3c684b1123ea3c8006f87fc24b
Author: Igor Murzov <e-mail at date.by>
Date:   Tue Jun 3 02:40:42 2014 +0400

    psql: Tell psql to not load .psqlrc as it may change output format (Alioth: #314636)
---
 completions/psql | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/completions/psql b/completions/psql
index 186177a..c462bf0 100644
--- a/completions/psql
+++ b/completions/psql
@@ -4,14 +4,14 @@ _pg_databases()
 {
     # -w was introduced in 8.4, https://launchpad.net/bugs/164772
     # "Access privileges" in output may contain linefeeds, hence the NF > 1
-    COMPREPLY=( $( compgen -W "$( psql -AtqwlF $'\t' 2>/dev/null | \
+    COMPREPLY=( $( compgen -W "$( psql -XAtqwlF $'\t' 2>/dev/null | \
         awk 'NF > 1 { print $1 }' )" -- "$cur" ) )
 }
 
 _pg_users()
 {
     # -w was introduced in 8.4, https://launchpad.net/bugs/164772
-    COMPREPLY=( $( compgen -W "$( psql -Atqwc 'select usename from pg_user' \
+    COMPREPLY=( $( compgen -W "$( psql -XAtqwc 'select usename from pg_user' \
         template1 2>/dev/null )" -- "$cur" ) )
     [[ ${#COMPREPLY[@]} -eq 0 ]] && COMPREPLY=( $( compgen -u -- "$cur" ) )
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/bash-completion/bash-completion.git



More information about the Bash-completion-commits mailing list