From 1f8ced8e6f1c99c62f1998b265a024022caaa354 Mon Sep 17 00:00:00 2001 From: Frantisek Hrbata Date: Tue, 3 Jun 2025 09:22:53 +0200 Subject: [PATCH] fix(tools): add support for shells compatible with ksh Currently, the export tools are detecting only ksh, but there are also compatible variants like pdksh and others. This update adds support for such ksh-compatible shells to improve export tool compatibility with ksh variants. Closes https://github.com/espressif/esp-idf/issues/16043 Signed-off-by: Frantisek Hrbata --- tools/export_utils/shell_types.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/export_utils/shell_types.py b/tools/export_utils/shell_types.py index cb1f541263..1320fccc3f 100644 --- a/tools/export_utils/shell_types.py +++ b/tools/export_utils/shell_types.py @@ -323,7 +323,16 @@ SHELL_CLASSES = { 'zsh': ZshShell, 'fish': FishShell, 'sh': UnixShell, + + # KornShell variants 'ksh': UnixShell, + 'ksh93': UnixShell, + 'mksh': UnixShell, + 'lksh': UnixShell, + 'pdksh': UnixShell, + 'oksh': UnixShell, + 'loksh': UnixShell, + 'dash': UnixShell, 'nu': UnixShell, 'pwsh.exe': PowerShell,