From 24cad3ed5cb183452adc1cd5e048ba24a058590c Mon Sep 17 00:00:00 2001 From: dgames Date: Wed, 23 Dec 2020 07:30:47 -0500 Subject: [PATCH 1/3] fix 'alias ..=cd ..' removing 2 char aliases --- vendor/bin/alias.cmd | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/vendor/bin/alias.cmd b/vendor/bin/alias.cmd index ccac5df..2eca8f2 100644 --- a/vendor/bin/alias.cmd +++ b/vendor/bin/alias.cmd @@ -81,6 +81,9 @@ set alias_name=!alias_name:~1! :: trailing quotes added while validating set alias_value=!alias_value:~0,-1! +:: '.' escaped +set alias_name_esc=!alias_name:.=\.! + ::remove spaces set _temp=%alias_name: =% @@ -91,7 +94,7 @@ if not ["%_temp%"] == ["%alias_name%"] ( ) :: replace already defined alias -%WINDIR%\System32\findstr /b /v /i "%alias_name%=" "%ALIASES%" >> "%ALIASES%.tmp" +%WINDIR%\System32\findstr /v /i "^%alias_name_esc%=" "%ALIASES%" >> "%ALIASES%.tmp" echo %alias_name%=%alias_value% >> "%ALIASES%.tmp" && type "%ALIASES%.tmp" > "%ALIASES%" & @del /f /q "%ALIASES%.tmp" doskey /macrofile="%ALIASES%" endlocal @@ -99,7 +102,11 @@ exit /b :p_del set del_alias=%~1 -%WINDIR%\System32\findstr /b /v /i "%del_alias%=" "%ALIASES%" >> "%ALIASES%.tmp" + +:: '.' escaped +set del_alias_esc=!del_alias:.=\.! + +%WINDIR%\System32\findstr /v /i "^%del_alias_esc%=" "%ALIASES%" >> "%ALIASES%.tmp" type "%ALIASES%".tmp > "%ALIASES%" & @del /f /q "%ALIASES%.tmp" doskey %del_alias%= doskey /macrofile="%ALIASES%" From bb2f89d0444be4dc67ba66b2da5a7d59211dbaf1 Mon Sep 17 00:00:00 2001 From: dgames Date: Wed, 23 Dec 2020 07:33:12 -0500 Subject: [PATCH 2/3] CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e0ba2e3..0acd3c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ### Fixes +- [bug] Running `alias ..=cd ..` removes other aliases #2394 - Switch to @chrisant996 [Clink](https://github.com/chrisant996/clink/) v1.1.10 to fix Clink newer Windows 10 releases. - Fix `\Git\cmd\git.exe found. was unexpected at this time.` - Documentation fixes. From ae0b7722ed4a419b2db31c70937efb427c0b70f2 Mon Sep 17 00:00:00 2001 From: dgames Date: Wed, 23 Dec 2020 07:55:16 -0500 Subject: [PATCH 3/3] CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0acd3c0..fff27ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Change Log -## [Unreleased] +## [1.3.17](https://github.com/cmderdev/cmder/tree/v1.3.17) (2020-12-23) ### Fixes