Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 3df65f8

Browse files
committed
More changes of >& to 2>&1
1 parent 6e801bd commit 3df65f8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/bin/scripts/createuser

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#
99
#
1010
# IDENTIFICATION
11-
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createuser,v 1.8 2000/01/19 20:08:36 petere Exp $
11+
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createuser,v 1.9 2000/03/25 14:36:58 momjian Exp $
1212
#
1313
# Note - this should NOT be setuid.
1414
#
@@ -154,7 +154,7 @@ fi
154154
# Don't want to leave the user blind if he breaks
155155
# during password entry.
156156

157-
trap 'stty echo >& /dev/null' 1 2 3 15
157+
trap 'stty echo >/dev/null 2>&1' 1 2 3 15
158158

159159
# Get missing user attributes
160160

@@ -166,14 +166,14 @@ fi
166166

167167
if [ "$PwPrompt" ]; then
168168
$ECHO_N "Enter password for user \"$NewUser\": "$ECHO_C
169-
stty -echo >& /dev/null
169+
stty -echo >/dev/null 2>&1
170170
read FirstPw
171-
stty echo >& /dev/null
171+
stty echo >/dev/null 2>&1
172172
echo
173173
$ECHO_N "Enter it again: "$ECHO_C
174-
stty -echo >& /dev/null
174+
stty -echo >/dev/null 2>&1
175175
read SecondPw
176-
stty echo >& /dev/null
176+
stty echo >/dev/null 2>&1
177177
echo
178178
if [ "$FirstPw" != "$SecondPw" ]; then
179179
echo "Passwords didn't match."

0 commit comments

Comments
 (0)