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

download with powershell 2.0 for windows #21968

Closed
wants to merge 7 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
whites fix
  • Loading branch information
musm committed Jun 26, 2017
commit d5616eb998ed050c71212b5748a6a642a0ce0e34
1 change: 1 addition & 0 deletions base/interactiveutil.jl
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,7 @@ function methodswith(t::Type, showparents::Bool=false)
end

# file downloading

downloadcmd = nothing
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

may as well set this, if a command is being used

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think downloadcmd can be removed and just be a local variable.
However this is unrelated to the changes in this PR. Let's save this for a separate PR

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure on a good way to avoid the global here?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you're changing the download function to shell out to something, the value of what you're shelling out to should be saved in the global that exists for that purpose

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't think this should be moved

if is_windows()
downloadcmd = :powershell
Expand Down