book icon indicating copy to clipboard operation
book copied to clipboard

Copying the commmands from doc won't run directly on the system because of $

Open saivishwak opened this issue 3 years ago • 1 comments

  • [yes] I have checked the latest main branch to see if this has already been fixed
  • [no] I have searched existing issues and pull requests for duplicates

URL to the section(s) of the book with this problem:

Description of the problem: when using the copy action to the right of rust commands in the doc. They won't run directly on the system because of $.

Screenshot 2022-07-30 at 3 48 45 PM

Suggested fix: Either remove the $ from rust commands or modify the copy action to exclude it from copying.

saivishwak avatar Jul 30 '22 10:07 saivishwak

I don't know how easy option 2 is but I think leaving the $ in helps establish where the command should be run although it was usually stated near the example but as a quick reference it makes it easier to identify where the command should be put.

c-git avatar Jul 30 '22 17:07 c-git

Please search existing issues before filing new issues https://github.com/rust-lang/book/search?q=dollar+sign+is%3Aissue&type=issues

carols10cents avatar Jul 31 '22 19:07 carols10cents