Re: psql in a bash function

2018-03-12 Thread Ron Johnson
I knew it was something simple... Thanks On 03/12/2018 01:24 PM, Eric Raskin wrote: Yes, you need double quotes around $@, as in "$@". https://www.gnu.org/software/bash/manual/html_node/Special-Parameters.html Sent from my Verizon, Samsung Galaxy smartphone Original message --

Re: psql in a bash function

2018-03-12 Thread Eric Raskin
Yes, you need double quotes around $@, as in "$@". https://www.gnu.org/software/bash/manual/html_node/Special-Parameters.html Sent from my Verizon, Samsung Galaxy smartphone Original message From: Ron Johnson Date: 3/12/18 2:15 PM (GMT-05:00) To: pgsql-general Subject:

Re: psql in a bash function

2018-03-12 Thread Melvin Davidson
On Mon, Mar 12, 2018 at 2:14 PM, Ron Johnson wrote: > Hi, > > Because I need to log into many servers, I created functions as keyboard > shortcuts (not aliases, since I will want to embed these shortcuts in other > functions). > > psqlxyz () > { > echo "P1=$1"; > echo "P2=$2"; > psql