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

Commit 6e801bd

Browse files
committed
Remove >& and make it 2>&1
1 parent 0dd9558 commit 6e801bd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/bin/initdb/initdb.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
#
2727
#
2828
# IDENTIFICATION
29-
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.86 2000/02/16 21:25:59 momjian Exp $
29+
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.87 2000/03/25 14:32:50 momjian Exp $
3030
#
3131
#-------------------------------------------------------------------------
3232

3333
exit_nicely(){
34-
stty echo >& /dev/null
34+
stty echo > /dev/null 2>&1
3535
echo
3636
echo "$CMDNAME failed."
3737
if [ "$noclean" -eq 0 ]; then
@@ -499,14 +499,14 @@ echo "REVOKE ALL on pg_shadow FROM public" \
499499
# set up password
500500
if [ "$PwPrompt" ]; then
501501
$ECHO_N "Enter new superuser password: "$ECHO_C
502-
stty -echo >& /dev/null
502+
stty -echo > /dev/null 2>&1
503503
read FirstPw
504-
stty echo >& /dev/null
504+
stty echo > /dev/null 2>&1
505505
echo
506506
$ECHO_N "Enter it again: "$ECHO_C
507-
stty -echo >& /dev/null
507+
stty -echo > /dev/null 2>&1
508508
read SecondPw
509-
stty echo >& /dev/null
509+
stty echo > /dev/null 2>&1
510510
echo
511511
if [ "$FirstPw" != "$SecondPw" ]; then
512512
echo "Passwords didn't match."

0 commit comments

Comments
 (0)