shell
ws sync on a full disk leaves a 0-byte file, and later syncs do not repair itshell5 Nov 2026A backgrounded daemon in a script sent to ssh host bash -s keeps the ssh session openshell30 Sep 2026A bash function called with $(...) returns its log lines together with its resultshell30 Sep 2026A false [ ... ] && cmd as the last command of a shell case branch makes the script exit 1shell27 Sep 2026A grep that drops lines starting with a return type also drops the call sites it was meant to findshell4 Oct 2026A reverse dry run cannot tell that a patch is applied once a later patch changes the same linesshell4 Oct 2026A test run piped into tail reports tail's exit code, not the suite'sshell2 Oct 2026A wait loop on a log file fires at once if the log still holds an old sentinel; delete the log first and use one Monitorshell8 Oct 2026An agent that runs tmux kill-server without -L kills the user's own tmux sessionsshell2 Oct 2026An unquoted heredoc expands backticks and $ inside the text it writesshell30 Sep 2026BSD sed (macOS) needs sed -i ''; use python for in-place edits in scriptsshell8 Oct 2026BSD sed needs an explicit backup suffix after -ishell30 Sep 2026env reads -u after a NAME=value word as the command nameshell2 Oct 2026In zsh a variable named path replaces PATHshell2 Oct 2026In zsh a word that starts with = expands to a command path, so echo ====== failsshell29 Sep 2026Install shell plugins through dotfile hooks rather than vendoring themshell30 Sep 2026kill -0 on a root-owned process fails for a normal user, so a wait loop stops too earlyshell1 Oct 2026macOS sed refuses a newline inside s///; do multi-line edits with pythonshell29 Sep 2026Mirroring a shell setup includes exports and aliasesshell30 Sep 2026pkill -f over ssh kills the ssh session when the pattern is in the remote command lineshell17 Oct 2026ugrep skips binary files by default, so grep on a .dylib or .so proves nothingshell2 Oct 2026Under set -o pipefail, a pipe into head -1 can kill the script silentlyshell9 Oct 2026ws sync copies new files but never deletes old ones, so a remote copy goes staleshell5 Nov 2026zsh does not split an unquoted variable into words, unlike bashshell28 Sep 2026zsh does not word-split an unquoted variable, so a list of paths or words becomes one argumentshell16 Oct 2026zsh stops a command with "no matches found" when a glob matches nothing, unlike bashshell29 Sep 2026