- Jun
- 98
- 0
[I'm trying to use MSYS together with TCC]
I want to use an external command (exe file) instead of internal.
For example: dir.exe
I expect to get something like that:
DIR - executes specific dir.exe
*DIR - executes TCC' DIR command.
So let's alias:
alias dir="z:\P Apps\PortableApps\CommonFiles\MSYS\App\msys\bin\dir.exe"
"*dir" works fine
In most cases "dir" works fine, too, but
DIR. (DIR and a dot without space) still calls internal command
DIR.mydata" (without space) executes internal "DIR .mydata"
It can be partially fixed:
alias dir.*="z:\P Apps\PortableApps\CommonFiles\MSYS\App\msys\bin\dir.exe"
In that case
dir. invokes external dir.exe (I'm not sure if a dot is passed as %1), but dir.mydata still invokes internal dir command.
So
alias dir.*="z:\P Apps\PortableApps\CommonFiles\MSYS\App\msys\bin\dir.exe"
works exactly as
alias dir.="z:\P Apps\PortableApps\CommonFiles\MSYS\App\msys\bin\dir.exe" (without asterisk)
I want to use an external command (exe file) instead of internal.
For example: dir.exe
I expect to get something like that:
DIR - executes specific dir.exe
*DIR - executes TCC' DIR command.
So let's alias:
alias dir="z:\P Apps\PortableApps\CommonFiles\MSYS\App\msys\bin\dir.exe"
"*dir" works fine
In most cases "dir" works fine, too, but
DIR. (DIR and a dot without space) still calls internal command
DIR.mydata" (without space) executes internal "DIR .mydata"
It can be partially fixed:
alias dir.*="z:\P Apps\PortableApps\CommonFiles\MSYS\App\msys\bin\dir.exe"
In that case
dir. invokes external dir.exe (I'm not sure if a dot is passed as %1), but dir.mydata still invokes internal dir command.
So
alias dir.*="z:\P Apps\PortableApps\CommonFiles\MSYS\App\msys\bin\dir.exe"
works exactly as
alias dir.="z:\P Apps\PortableApps\CommonFiles\MSYS\App\msys\bin\dir.exe" (without asterisk)