bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#23242: [PATCH] ob-sql.el: set PGPASSWORD environment


From: Andreas Schwab
Subject: bug#23242: [PATCH] ob-sql.el: set PGPASSWORD environment
Date: Fri, 08 Apr 2016 17:45:58 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (gnu/linux)

Andreas Gerler <address@hidden> writes:

>                   (`postgresql (format
> -                               "psql --set=\"ON_ERROR_STOP=1\" %s -A -P \
> +                               "%s psql --set=\"ON_ERROR_STOP=1\" %s -A -P \
>  footer=off -F \"\t\"  %s -f %s -o %s %s"
> +                               (if dbpassword (concat "PGPASSWORD='" 
> dbpassword "'") "")

This will fail if dbpassword contains ?\'.  Environment variables should
be passed via process-environment.

Andreas.

-- 
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





reply via email to

[Prev in Thread] Current Thread [Next in Thread]