Skip to content

Commit f000bd0

Browse files
committed
#1185: fixed icd 'closing brace expected' issue
1 parent b050b96 commit f000bd0

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

CHANGELOG.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ This file documents all notable changes to https://github.com/devonfw/IDEasy[IDE
66

77
Release with new features and bugfixes:
88

9+
* https://github.com/devonfw/IDEasy/issues/1185[#1185]: Fix icd not working in zsh on older macOS
910
* https://github.com/devonfw/IDEasy/issues/1754[#1754]: Add version support to vscode plugins
1011
* https://github.com/devonfw/IDEasy/issues/796[#796]: cannot install aws on Mac
1112
* https://github.com/devonfw/IDEasy/issues/1800[#1800]: IDEasy will automatically switch to IntelliJ standard edition when installing newer ultimate edition versions

cli/src/main/package/functions

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function ide() {
3131
}
3232

3333
function icd() {
34-
if [ $# = 1 ] && [ "${1::1}" != "-" ]; then
34+
if [ $# = 1 ] && [ "${1:0:1}" != "-" ]; then
3535
cd $1 || return 1
3636
ide
3737
return
@@ -56,7 +56,7 @@ function icd() {
5656
;;
5757
-w|--workspace)
5858
shift
59-
if [ $# != 0 ] && [ "${1::1}" != "-" ]; then
59+
if [ $# != 0 ] && [ "${1:0:1}" != "-" ]; then
6060
icd_workspace=$1
6161
shift
6262
else

0 commit comments

Comments
 (0)