- May
- 13,399
- 190
I have this setup.
And it seems to work OK, including the builtin unknown command mechanism.
Now I'll use the "e" alias to open v:\cdenter.btm in the editor. I'll close it without making any changes.
And now I'll try the CD_ENTER alias and I'll also enter a bogus command. Observe how the CD_ENTER alias no longer works, and that the built-in nknown command mechanism has gone bananas.
My global alias list is intact. If I start a new instance all's well until I use the "e" alias (on any file!). Regardless of what file I open with "e", the unknown command mechanism goes berserk.
If I don't have CD_ENTER set, all's well (including my "e" alias).
Code:
v:\> alias e
u:\tpad.btm
v:\> type u:\tpad.btm
setlocal
set noexist=0
do i=1 to %#
if not exist %[%i] set noexist=%@eval[%noexist + 1]
enddo
iff %noexist GT 0 then
do i=1 to %noexist
touch /c /q %[%i]
enddo
endiff
start d:\TextPad7\TextPad.exe %$
v:\> alias cd_enter
v:\cdenter.btm
v:\> type v:\cdenter.btm
@echo off
echo %%1 is %1
echo The current directory is %_cwd
And it seems to work OK, including the builtin unknown command mechanism.
Code:
v:\> cd empty\
%1 is V:\empty
The current directory is V:\empty
v:\empty> cd ..
%1 is V:\
The current directory is V:\
v:\> foo
TCC: Unknown command "foo"
v:\>
Now I'll use the "e" alias to open v:\cdenter.btm in the editor. I'll close it without making any changes.
Code:
v:\> e v:\cdenter.btm
And now I'll try the CD_ENTER alias and I'll also enter a bogus command. Observe how the CD_ENTER alias no longer works, and that the built-in nknown command mechanism has gone bananas.
Code:
v:\> cd empty\
v:\empty> cd ..
v:\> foo
TCC: V:\cdenter.btm [0] Unknown command "foo"
v:\>
My global alias list is intact. If I start a new instance all's well until I use the "e" alias (on any file!). Regardless of what file I open with "e", the unknown command mechanism goes berserk.
If I don't have CD_ENTER set, all's well (including my "e" alias).