[njs] Shell: fixed output of large values for last evaluated expression.

Dmitry Volyntsev xeioex at nginx.com
Mon Dec 23 15:53:32 UTC 2019


details:   https://hg.nginx.org/njs/rev/99f9008e1b17
branches:  
changeset: 1288:99f9008e1b17
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Tue Dec 17 18:22:50 2019 +0300
description:
Shell: fixed output of large values for last evaluated expression.

diffstat:

 src/njs_shell.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 61bf7a31e685 -r 99f9008e1b17 src/njs_shell.c
--- a/src/njs_shell.c	Tue Dec 17 10:35:11 2019 +0300
+++ b/src/njs_shell.c	Tue Dec 17 18:22:50 2019 +0300
@@ -750,7 +750,8 @@ njs_output(njs_opts_t *opts, njs_vm_t *v
         }
 
         if (vm->options.accumulative) {
-            njs_printf("%V\n", &out);
+            njs_print(out.start, out.length);
+            njs_print("\n", 1);
         }
 
     } else {


More information about the nginx-devel mailing list