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
- SSH saga
- Injecting Pytest fixtures without cluttering test signatures
- Explicit method overriding with @typing.override
- Quicker startup with module-level __getattr__
- Docker mount revisited
- Topological sort
- Writing a circuit breaker in Go
- Discovering direnv
- Notes on building event-driven systems
- Bash namerefs for dynamic variable referencing