提交 1c9c2435 编写于 作者: R Rich Salz 提交者: Rich Salz

Restore the old interactive prompt.

Reviewed-by: NTim Hudson <tjh@openssl.org>
上级 373dc6e1
...@@ -329,17 +329,6 @@ int main(int argc, char *argv[]) ...@@ -329,17 +329,6 @@ int main(int argc, char *argv[])
} }
apps_startup(); apps_startup();
/*
* If first argument is a colon, skip it. Because in "interactive"
* mode our prompt is a colon and we can cut/paste whole lines
* by doing this hack.
*/
if (argv[1] && strcmp(argv[1], ":") == 0) {
argv[1] = argv[0];
argc--;
argv++;
}
prog = prog_init(); prog = prog_init();
pname = opt_progname(argv[0]); pname = opt_progname(argv[0]);
...@@ -367,7 +356,7 @@ int main(int argc, char *argv[]) ...@@ -367,7 +356,7 @@ int main(int argc, char *argv[])
ret = 0; ret = 0;
/* Read a line, continue reading if line ends with \ */ /* Read a line, continue reading if line ends with \ */
for (p = buf, n = sizeof buf, i = 0, first = 1; n > 0; first = 0) { for (p = buf, n = sizeof buf, i = 0, first = 1; n > 0; first = 0) {
prompt = first ? "openssl : " : "> "; prompt = first ? "OpenSSL> " : "> ";
p[0] = '\0'; p[0] = '\0';
#ifndef READLINE #ifndef READLINE
fputs(prompt, stdout); fputs(prompt, stdout);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册