diff --git a/doc/src/sgml/ref/postmaster.sgml b/doc/src/sgml/ref/postmaster.sgml
index 124098f4dd..dda77314c8 100644
--- a/doc/src/sgml/ref/postmaster.sgml
+++ b/doc/src/sgml/ref/postmaster.sgml
@@ -1,5 +1,5 @@
@@ -471,7 +471,7 @@ $ psql -p 1234
or set the environment variable PGPORT:
-$ setenv PGPORT 1234
+$ export PGPORT 1234
$ psql