From c5a1ddeaffd4ec6fda784a79f78de69882a56d71 Mon Sep 17 00:00:00 2001 From: Sidharth Kshatriya Date: Thu, 24 Jun 2021 19:53:38 +0530 Subject: [PATCH] Better style --- src/shell_manager.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shell_manager.cc b/src/shell_manager.cc index 57db15387..b85de382f 100644 --- a/src/shell_manager.cc +++ b/src/shell_manager.cc @@ -146,7 +146,7 @@ Vector generate_env(StringView cmdline, const Context& context, const Sh auto match_name = [&](const String& s) { return s.substr(0_byte, shell_name.length()) == shell_name and - s.substr(0_byte + shell_name.length(), 1_byte) == "="; + s.substr(shell_name.length(), 1_byte) == "="; }; if (any_of(env, match_name)) continue;