]> granicus.if.org Git - postgresql/commitdiff
pg_upgrade/test.sh: Quote sed(1) argument
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 18 Sep 2019 14:24:12 +0000 (11:24 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 18 Sep 2019 14:26:45 +0000 (11:26 -0300)
Lack of quotes results in failure to run the test under older Solaris.

Author: Marina Polyakova, Victor Wagner
Discussion: https://postgr.es/m/feba89f89e8925b3535cb7d72b9e05e1@postgrespro.ru

src/bin/pg_upgrade/test.sh

index 0e90b359e37053a242bc800e4d22ab5134862836..6e5d9874cd676ab0bb8e6f3924eee7020809f16d 100644 (file)
@@ -31,7 +31,7 @@ standard_initdb() {
 
 # What flavor of host are we on?
 # Treat MINGW* (msys1) and MSYS* (msys2) the same.
-testhost=`uname -s | sed s/^MSYS/MINGW/`
+testhost=`uname -s | sed 's/^MSYS/MINGW/'`
 
 # Establish how the server will listen for connections
 case $testhost in