tty.help
Appearance

Display preferences are saved in this browser.

8 minute field note

Small syntax, big consequences

Understand quoting, exit codes, expansion and the edges of simple explanations.

Quote deliberately

Single quotes in common POSIX-like shells preserve literal characters. Double quotes still allow parameter expansion and command substitution. Unquoted values can split into words and expand patterns. Shell dialects differ.

Beware hidden execution

$(...) and backticks execute nested commands. Aliases, shell functions, wrappers and PATH can change which program runs. This site does not resolve your machine’s shell configuration.

Sequence with intent

a && b means b runs when a succeeds. a ; b runs b regardless of a’s status. a || b runs b on failure. Mixing these is not a general substitute for an explicit if statement.

Use the manual for your version

Check the locally installed tool’s help and manual. GNU/Linux examples can differ from BSD/macOS commands. Flags can evolve; verify the version, environment and target before running unfamiliar syntax.

Your next step

Pick one command from your agent’s last explanation. Identify its purpose, target and possible side effects before deciding whether to run it.

Explore the field guide