Closed NikolayS closed 3 years ago
@unhandled-exception please check it if you have a minute. Thanks.
This method is not works on zsh and csh (FreeBSD, OSX):
echo "\\set dba '"'\''\'"i `pwd`/postgres_dba/start.psql'"
zsh:
\set dba '\i /home/aquila/postgres_dba/start.psql'
bash:
\set dba '\\i /home/aquila/postgres_dba/start.psql'
csh:
\\set dba '\\i /usr/home/aquila/postgres_dba/start.psql'
I found an alternative method:
printf "%s %s %s %s\n" \\set dba \'\\\\i `pwd`/postgres_dba/start.psql\'
zsh:
\set dba '\\i /home/aquila/postgres_dba/start.psql'
bash:
\set dba '\\i /home/aquila/postgres_dba/start.psql'
csh:
\set dba '\\i /usr/home/aquila/postgres_dba/start.psql'
It's works on FreeBSD, Linux and OSX :)
@unhandled-exception please check it if you have a minute. Thanks.