File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 8
8
#
9
9
#
10
10
# 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 $
12
12
#
13
13
# Note - this should NOT be setuid.
14
14
#
154
154
# Don't want to leave the user blind if he breaks
155
155
# during password entry.
156
156
157
- trap ' stty echo >& /dev/null' 1 2 3 15
157
+ trap ' stty echo >/dev/null 2>&1 ' 1 2 3 15
158
158
159
159
# Get missing user attributes
160
160
166
166
167
167
if [ " $PwPrompt " ]; then
168
168
$ECHO_N " Enter password for user \" $NewUser \" : " $ECHO_C
169
- stty -echo >& /dev/null
169
+ stty -echo > /dev/null 2>&1
170
170
read FirstPw
171
- stty echo >& /dev/null
171
+ stty echo > /dev/null 2>&1
172
172
echo
173
173
$ECHO_N " Enter it again: " $ECHO_C
174
- stty -echo >& /dev/null
174
+ stty -echo > /dev/null 2>&1
175
175
read SecondPw
176
- stty echo >& /dev/null
176
+ stty echo > /dev/null 2>&1
177
177
echo
178
178
if [ " $FirstPw " != " $SecondPw " ]; then
179
179
echo " Passwords didn't match."
You can’t perform that action at this time.
0 commit comments