More changes of >& to 2>&1
This commit is contained in:
parent
6e801bd8db
commit
3df65f8499
@ -8,7 +8,7 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
# IDENTIFICATION
|
# 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.
|
# Note - this should NOT be setuid.
|
||||||
#
|
#
|
||||||
@ -154,7 +154,7 @@ fi
|
|||||||
# Don't want to leave the user blind if he breaks
|
# Don't want to leave the user blind if he breaks
|
||||||
# during password entry.
|
# 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
|
# Get missing user attributes
|
||||||
|
|
||||||
@ -166,14 +166,14 @@ fi
|
|||||||
|
|
||||||
if [ "$PwPrompt" ]; then
|
if [ "$PwPrompt" ]; then
|
||||||
$ECHO_N "Enter password for user \"$NewUser\": "$ECHO_C
|
$ECHO_N "Enter password for user \"$NewUser\": "$ECHO_C
|
||||||
stty -echo >& /dev/null
|
stty -echo >/dev/null 2>&1
|
||||||
read FirstPw
|
read FirstPw
|
||||||
stty echo >& /dev/null
|
stty echo >/dev/null 2>&1
|
||||||
echo
|
echo
|
||||||
$ECHO_N "Enter it again: "$ECHO_C
|
$ECHO_N "Enter it again: "$ECHO_C
|
||||||
stty -echo >& /dev/null
|
stty -echo >/dev/null 2>&1
|
||||||
read SecondPw
|
read SecondPw
|
||||||
stty echo >& /dev/null
|
stty echo >/dev/null 2>&1
|
||||||
echo
|
echo
|
||||||
if [ "$FirstPw" != "$SecondPw" ]; then
|
if [ "$FirstPw" != "$SecondPw" ]; then
|
||||||
echo "Passwords didn't match."
|
echo "Passwords didn't match."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user