Re: pg_ctl restart bug - Mailing list pgsql-bugs

From Peter Eisentraut
Subject Re: pg_ctl restart bug
Date
Msg-id Pine.LNX.4.30.0104211302010.758-100000@peter.localdomain
Whole thread Raw
In response to Re: pg_ctl restart bug  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
Tom Lane writes:

> !     eval '$po_path' '$POSTOPTS' $logopt '&'

> --- 323,335 ----

> !     eval '$po_path' $POSTOPTS $logopt '&'

Actually, I think it needs to be "$POSTOPTS" (double quoted), to preserve
whitespace.

peter ~$ opts="-N -o '-F   -S'"
peter ~$ eval ./argprint $opts
-N
-o
-F -S
peter ~$ eval ./argprint "$opts"
-N
-o
-F   -S
peter ~$ cat argprint
#!/bin/sh

for arg do
  echo "$arg"
done

--
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter

pgsql-bugs by date:

Previous
From: pgsql-bugs@postgresql.org
Date:
Subject: TCL error with rserv on Solaris
Next
From: Joseph Crawley
Date:
Subject: table named primary