From 5cad257c2aad0e299b99327415730926c4976794 Mon Sep 17 00:00:00 2001 From: Nick Lash Date: Sun, 26 Jan 2025 13:31:36 -0600 Subject: [PATCH] Fix TypeError in ds.py occurs when trying to use `(lldb) sys echo "$(dclass -t swift)" | grep -v _ | grep "\." | cut -d. -f1 | uniq | wc -l` - 4th edition 1.2 --- lldb_commands/ds.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lldb_commands/ds.py b/lldb_commands/ds.py index dee5e12..947a2cd 100644 --- a/lldb_commands/ds.py +++ b/lldb_commands/ds.py @@ -1003,8 +1003,8 @@ def sys(debugger, command, exe_ctx, result, internal_dict): output = subprocess.Popen(command, stdin=subprocess.PIPE, stderr=subprocess.PIPE, stdout=subprocess.PIPE, shell=True, env=my_env).communicate() retOutput = '' if output[1]: - retOutput += output[1] - retOutput += output[0].decode("utf-8") + retOutput += output[1].decode("utf-8") + retOutput += output[0].decode("utf-8") result.AppendMessage(retOutput)