-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Mistake in the Windows command line code in the Rust book #33219
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
Comments
Want to open a PR to modify it yourself? :) |
I do and I will in a couple of days. :) |
Great! cc me once done then please. :) |
More specifically, it is only the |
@retep998 Thanks for the note. This is definitely good to know, but I haven't included it in the comment since with People who already know they can use |
…ch-1, r=GuillaumeGomez Fix use of the `move` command in the Windows shell `move` works both in `cmd` and in Powershell. `mv` works only in Powershell and the book says nothing about which shell is recommended so this could confuse beginners. Closes rust-lang#33219.
…ch-1, r=GuillaumeGomez Fix use of the `move` command in the Windows shell `move` works both in `cmd` and in Powershell. `mv` works only in Powershell and the book says nothing about which shell is recommended so this could confuse beginners. Closes rust-lang#33219.
In the Getting Started section of the Rust book, there's this snippet under Creating a new Executable and Source Directory:
$ mkdir src $ mv main.rs src/main.rs $ rm main # or 'del main.exe' on Windows
On Windows, there's no
mv
, justmove
. Themv
and other commands are available when one uses Cygwin or similar, but the book says nothing about that, so it should be fixed to include a comment similarly to the line underneath it.The text was updated successfully, but these errors were encountered: