book icon indicating copy to clipboard operation
book copied to clipboard

Copy to clipboard includes command prompt

Open AndyOGo opened this issue 1 year ago • 0 comments
trafficstars

  • I have searched open and closed issues and pull requests for duplicates, using these search terms:
    • command prompt
    • command not found
    • Copy to clipboard
  • I have checked the latest main branch to see if this has already been fixed, in this file:
    • yes

URL to the section(s) of the book with this problem: https://doc.rust-lang.org/book/ch01-01-installation.html#installing-rustup-on-linux-or-macos

Description of the problem: Copy to clipboard includes command prompt $ and result in following error when pasted into any CLI:

-bash: $: command not found

Suggested fix: Copy to clipboard should strip any status information like command prompt.

AndyOGo avatar Dec 03 '23 12:12 AndyOGo