Skip to content
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

Bugfix for alias() on Windows #607

Conversation

mottosso
Copy link
Contributor

Here's a bugfix.

Problem

alias() under Windows doesn't let you pass additional arguments to an "alias" - a.k.a. "doskey" under Windows.

def commands():
  alias("python", "c:\python36\python.exe")
$ python -c "print('hello world')"
Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:54:40) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>

Solution

Append $* to the doskey command.

$ python -c "print('hello world')"
hello world

@mottosso mottosso changed the title Align alias() in package.py on Windows with how it works on Linux Bugfix for alias()` in package.py on Windows with how it works on Linux Apr 27, 2019
@mottosso mottosso changed the title Bugfix for alias()` in package.py on Windows with how it works on Linux Bugfix for alias() on Windows Apr 27, 2019
@nerdvegas nerdvegas added the os:windows Windows-specific label Jun 2, 2019
@nerdvegas nerdvegas merged commit 4ffdd1a into AcademySoftwareFoundation:master Jun 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os:windows Windows-specific
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants