Skip to content

$HOME and $pwd Do Not Work in Windows 10 Enterprise and cmd #3

@gkapfham

Description

@gkapfham

When I have previously tried to use variables like $HOME and $pwd as mentioned in the documentation, my experience is that they do not work correctly when you are running the suggested Docker commands in cmd on Windows 10 Pro and Windows 10 Enterprise.

With that said, I have not had enough time to test this extensively and on all of the different shells and combinations of Windows-based operating system and shell.

Since I did not want to forget this concern, I thought to raise the issue now and to start a conversation about how it might be possible for us to write those commands in a more general fashion. Or, do we also need to provide example Windows commands that will work and instead use variables like %cd%? Here is a reference:

https://stackoverflow.com/questions/921741/windows-equivalent-to-unix-pwd

Okay, let me know what you think @Michionlion! I'm glad to update the documentation in a PR if we can identify a general-purpose way to write the documentation commands that work either for MacOS and Linux or Windows 10 Pro and Windows 10 Enterprise.

Metadata

Metadata

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions