Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3df65f8

Browse files
committed
More changes of >& to 2>&1
1 parent6e801bd commit3df65f8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

‎src/bin/scripts/createuser

Lines changed: 6 additions & 6 deletions
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/null2>&1
170170
read FirstPw
171-
sttyecho>&/dev/null
171+
sttyecho>/dev/null2>&1
172172
echo
173173
$ECHO_N"Enter it again:"$ECHO_C
174-
stty -echo>&/dev/null
174+
stty -echo>/dev/null2>&1
175175
read SecondPw
176-
sttyecho>&/dev/null
176+
sttyecho>/dev/null2>&1
177177
echo
178178
if ["$FirstPw"!="$SecondPw" ];then
179179
echo"Passwords didn't match."

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp