-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug in alias.bat #52
Comments
Interesting @Vivix, I summon you! ⚡ |
Here is the original content of the alias.bat file from my download. echo %* >> %~dp0..\config\aliases Here is the original content of the alias file in config: e.=explorer . If I type "alias" with no arguments in a cmder window it tells me "Alias created". The contents of my alias file now look like this: e.=explorer . And the next time you run alias.bat you get an error from the "ECHO is on" line "Invalid macro definition" Following my suggestion and changing the alias.bat script so it looks like this solves the problem, and when you type "alias" with no arguments you get a list of your aliases - better emulation of bash. @echo off |
I thought I was closing the comment ... no the issue. It is still an issue - I closed it accidently |
Hey! Alias.bat has changed, it is no longer the three lines presented here, and has adopted a minimal validation against empty arguments or malformed alias names. Though making no arguments print your aliases is probably a good idea for people used to bash. Could you update/pull the latest changes and see if it fixes things? |
My fault, sorry. I am working on 1.1 that will contain the fix. I should have asked about the version. |
Should be fixed in latest release |
If you type "alias" with no arguments it screws up your aliases file. Adding the following two lines to the top of the alias.bat file gives better behavior:
@echo off
if "%~1" == "" (doskey /macros:all & goto :EOF )
The text was updated successfully, but these errors were encountered: