Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
3df65f84
Commit
3df65f84
authored
Mar 25, 2000
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More changes of >& to 2>&1
parent
6e801bd8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/bin/scripts/createuser
src/bin/scripts/createuser
+6
-6
No files found.
src/bin/scripts/createuser
View file @
3df65f84
...
...
@@ -8,7 +8,7 @@
#
#
# 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.
#
...
...
@@ -154,7 +154,7 @@ fi
# Don't want to leave the user blind if he breaks
# 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
...
...
@@ -166,14 +166,14 @@ fi
if
[
"
$PwPrompt
"
]
;
then
$ECHO_N
"Enter password for user
\"
$NewUser
\"
: "
$ECHO_C
stty
-echo
>
& /dev/null
stty
-echo
>
/dev/null 2>&1
read
FirstPw
stty echo
>
& /dev/null
stty echo
>
/dev/null 2>&1
echo
$ECHO_N
"Enter it again: "
$ECHO_C
stty
-echo
>
& /dev/null
stty
-echo
>
/dev/null 2>&1
read
SecondPw
stty echo
>
& /dev/null
stty echo
>
/dev/null 2>&1
echo
if
[
"
$FirstPw
"
!=
"
$SecondPw
"
]
;
then
echo
"Passwords didn't match."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment