diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index ac582004d..66a6f9fdc 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 e54ae272d..b2265dc14 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