From 6e64ed64c4248197be5b58bd152aedaabbe29ad9 Mon Sep 17 00:00:00 2001 From: zawz Date: Sat, 14 Aug 2021 13:46:47 +0200 Subject: [PATCH] fix minify subshell applying on cd --- src/processing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/processing.cpp b/src/processing.cpp index c6daba5..dac60cd 100644 --- a/src/processing.cpp +++ b/src/processing.cpp @@ -284,7 +284,7 @@ bool r_has_env_set(_obj* in, bool* result) }; break; case _obj::block_cmd: { cmd* t = dynamic_cast(in); - if(t->has_var_assign()) + if(t->has_var_assign() || t->arg_string(0) == "cd") *result = true; } default: break;