Closed timKraeuter closed 7 months ago
Thanks for pointing this out. I'm leaning towards consistent use of $.
I also think that makes the most sense and seems consistent with what I have seen in other documentation.
I made a minimal pull request (#761) which fixes the issue and subsumes an old pull request (#691).
The bash scripts are displayed inconsistently across the tutorial, which is a bit confusing and sometimes less ergonomic when following the tutorial.
Problem
For example, in Hello tokio and Spawning the following is used (mind the $, and language=bash):
In Streams, $ is used but not language=bash, which is fine but could be changed.
However, later in Channels, IO, and Framing scripts are shown as follows (mind the missing $, and language=text not bash):
This is probably because the commands in Channels, IO, and Framing do not create any output, and without $, multiple commands are easier to copy and paste (more ergonomic). In contrast, in Hello tokio there is a command with output:
Solutions
Thus, there are multiple solutions:
Let me know what you think!
I can draft a pull request for 1 or 2 if you like.