From 66fde075f1f64a2346493dc18a5d786e54b4bcfa Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Sat, 2 May 2020 08:09:26 +0000 Subject: [PATCH] Make ;cat command not expand @-codes or terminate on Ctrl-Z char. --- exec/str_cmds.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/exec/str_cmds.js b/exec/str_cmds.js index 29cb6be946..355a73b836 100644 --- a/exec/str_cmds.js +++ b/exec/str_cmds.js @@ -121,7 +121,7 @@ function str_cmds(str) if(word=="LIST" || word=="TYPE" || word=="CAT") { if(bbs.check_syspass()) { str=str.substr(4); - console.printfile(get_filename(str), P_CPM_EOF); + console.printfile(get_filename(str), word == "CAT" ? P_NOATCODES : P_CPM_EOF); return; } } @@ -855,8 +855,12 @@ function get_arg(str, parm, history) write(format("%s: ", parm)); str=console.getstr(128, K_MSG, history); } - if(str && history.indexOf(str) < 0) + if(str) { + var i = history.indexOf(str); + if(i >= 0) + history.splice(i, 1); history.unshift(str); + } return(str); } -- GitLab