From f000bd0f621a8e4b82226252da608588cc78252e Mon Sep 17 00:00:00 2001 From: ShodiBoy1 Date: Fri, 22 May 2026 12:44:23 +0200 Subject: [PATCH] #1185: fixed icd 'closing brace expected' issue --- CHANGELOG.adoc | 1 + cli/src/main/package/functions | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index be30974030..2993bcff4f 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -6,6 +6,7 @@ This file documents all notable changes to https://github.com/devonfw/IDEasy[IDE Release with new features and bugfixes: +* https://github.com/devonfw/IDEasy/issues/1185[#1185]: Fix icd not working in zsh on older macOS * https://github.com/devonfw/IDEasy/issues/1754[#1754]: Add version support to vscode plugins * https://github.com/devonfw/IDEasy/issues/796[#796]: cannot install aws on Mac * https://github.com/devonfw/IDEasy/issues/1800[#1800]: IDEasy will automatically switch to IntelliJ standard edition when installing newer ultimate edition versions diff --git a/cli/src/main/package/functions b/cli/src/main/package/functions index e54ae272d1..b2265dc144 100644 --- a/cli/src/main/package/functions +++ b/cli/src/main/package/functions @@ -31,7 +31,7 @@ function ide() { } function icd() { - if [ $# = 1 ] && [ "${1::1}" != "-" ]; then + if [ $# = 1 ] && [ "${1:0:1}" != "-" ]; then cd $1 || return 1 ide return @@ -56,7 +56,7 @@ function icd() { ;; -w|--workspace) shift - if [ $# != 0 ] && [ "${1::1}" != "-" ]; then + if [ $# != 0 ] && [ "${1:0:1}" != "-" ]; then icd_workspace=$1 shift else