From f586fea8213fc8d9ffda2a1199fdc0a74dc95daa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vin=C3=ADcius=20R=2E=20Miguel?= Date: Thu, 4 Jun 2020 21:23:58 -0300 Subject: [PATCH] Small change to show_history --- Sources/opsys.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Sources/opsys.cpp b/Sources/opsys.cpp index 1726cff..9307fb0 100644 --- a/Sources/opsys.cpp +++ b/Sources/opsys.cpp @@ -199,16 +199,14 @@ short OpSys::piped_command(vector tokens, int pipe_count) void OpSys::show_history() // TODO: save (and read) history on a file? use Bourne Again's history?? { - unsigned short i = 0, j; + unsigned short i = 0; for(vector command : history) { - string command_str = ""; - for(j=0; j