Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

alias with && doesn't work #859

Closed
do34 opened this issue Feb 29, 2016 · 1 comment
Closed

alias with && doesn't work #859

do34 opened this issue Feb 29, 2016 · 1 comment

Comments

@do34
Copy link

do34 commented Feb 29, 2016

I try to use & for an alias in order to execute more than one command
e.g.

λ alias ctest=c: & cd c:\test

But get following error

The system cannot find the path specified.

although it's possible to make an entry in config/aliases that also works

@do34 do34 closed this as completed Mar 1, 2016
@glucas
Copy link
Contributor

glucas commented Apr 6, 2016

See #632 -- same issue with the shell handling the & before it gets passed to alias.bat. You can use the doskey equivalent $T here:

alias ctest=c: $T cd c:\test

Note that in this case you can also just use the /D option to tell cd to change drives:

alias ctest=cd /D c:\test

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants