aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2000-03-25 14:36:58 +0000
committerBruce Momjian <bruce@momjian.us>2000-03-25 14:36:58 +0000
commit3df65f8499cd3ed7bf89f3c902a0256470d5eb53 (patch)
treee476bf85b1de17ef73f6ff4c19521951927eb023 /src
parent6e801bd8db21fde9acb93673fcc0af79575d50bf (diff)
downloadpostgresql-3df65f8499cd3ed7bf89f3c902a0256470d5eb53.tar.gz
postgresql-3df65f8499cd3ed7bf89f3c902a0256470d5eb53.zip
More changes of >& to 2>&1
Diffstat (limited to 'src')
-rw-r--r--src/bin/scripts/createuser12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bin/scripts/createuser b/src/bin/scripts/createuser
index 4f717c8cb63..f520fec94b1 100644
--- a/src/bin/scripts/createuser
+++ b/src/bin/scripts/createuser
@@ -8,7 +8,7 @@
#
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createuser,v 1.8 2000/01/19 20:08:36 petere Exp $
+# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createuser,v 1.9 2000/03/25 14:36:58 momjian Exp $
#
# Note - this should NOT be setuid.
#
@@ -154,7 +154,7 @@ fi
# Don't want to leave the user blind if he breaks
# during password entry.
-trap 'stty echo >& /dev/null' 1 2 3 15
+trap 'stty echo >/dev/null 2>&1' 1 2 3 15
# Get missing user attributes
@@ -166,14 +166,14 @@ fi
if [ "$PwPrompt" ]; then
$ECHO_N "Enter password for user \"$NewUser\": "$ECHO_C
- stty -echo >& /dev/null
+ stty -echo >/dev/null 2>&1
read FirstPw
- stty echo >& /dev/null
+ stty echo >/dev/null 2>&1
echo
$ECHO_N "Enter it again: "$ECHO_C
- stty -echo >& /dev/null
+ stty -echo >/dev/null 2>&1
read SecondPw
- stty echo >& /dev/null
+ stty echo >/dev/null 2>&1
echo
if [ "$FirstPw" != "$SecondPw" ]; then
echo "Passwords didn't match."