Prevent shell commands from executing immediately when pasting. Use curly braces to safely paste multi-line commands with hidden newline characters.
Pasting shell commands can be a pain when they include hidden return \n characters. In
such a case, your shell will try to execute the command immediately. To prevent that, use
curly braces { <cmd> } while pasting the command. Your command should look like the
following:
{ dig +short google.com }
Here, the spaces after the braces are significant.
~~~
Recent posts
- Your Go tests probably don't need a mocking library
- Tap compare testing for service migration
- Splintered failure modes in Go
- Re-exec testing Go subprocesses
- Revisiting interface segregation in Go
- Avoiding collisions in Go context keys
- Organizing Go tests
- Subtest grouping in Go
- Let the domain guide your application structure
- Test state, not interactions