Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
2f4d2242
Commit
2f4d2242
authored
Mar 03, 2010
by
antirez
Browse files
added quit and exit commands to redis-cli in order to quit the interactive mode
parent
52d23ddb
Changes
1
Hide whitespace changes
Inline
Side-by-side
redis-cli.c
View file @
2f4d2242
...
@@ -460,6 +460,8 @@ static void repl() {
...
@@ -460,6 +460,8 @@ static void repl() {
for
(
ap
=
args
;
(
*
ap
=
strsep
(
&
line
,
"
\t
"
))
!=
NULL
;)
{
for
(
ap
=
args
;
(
*
ap
=
strsep
(
&
line
,
"
\t
"
))
!=
NULL
;)
{
if
(
**
ap
!=
'\0'
)
{
if
(
**
ap
!=
'\0'
)
{
if
(
argc
>=
max
)
break
;
if
(
argc
>=
max
)
break
;
if
(
strcasecmp
(
*
ap
,
"quit"
)
==
0
||
strcasecmp
(
*
ap
,
"exit"
)
==
0
)
exit
(
0
);
ap
++
;
ap
++
;
argc
++
;
argc
++
;
}
}
...
...
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