Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
3df65f84
Commit
3df65f84
authored
25 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
More changes of >& to 2>&1
parent
6e801bd8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/bin/scripts/createuser
+6
-6
6 additions, 6 deletions
src/bin/scripts/createuser
with
6 additions
and
6 deletions
src/bin/scripts/createuser
+
6
−
6
View file @
3df65f84
...
...
@@ -8,7 +8,7 @@
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createuser,v 1.
8
2000/0
1/19 20:08:36 petere
Exp $
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createuser,v 1.
9
2000/0
3/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."
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment