-
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
Can't use aliases + && #224
Comments
This isn't a global fix, but should work for most things, but if you put
It would be nice to be able to use aliases in chains, but this should work until then. |
This is a limitation of doskey, which provides the cmd.exe support for aliases (macros). You actually can't use a macro after && at all. For example:
whereas this works fine without the macro:
Macros only work as the first part of a command. See http://technet.microsoft.com/en-us/library/bb490894.aspx, specifically: |
Does this mean it is also impossible to redirect the output from a doskey to another command? Suppose I want to copy the output to the clipboard:
The output from the doskey is still displayed, and not redirected to |
so, here's my snippet: I want to:
Is that possible? |
Can't use this, for example:
desktop && ls
where desktop isalias desktop=c: $T cd C:\Users\USER\Desktop\
.The text was updated successfully, but these errors were encountered: