bash
5 traces
- Claude Code deny rule Bash(git push:*) is prefix-only — 'git -C dir push' slips through; use a PreToolUse hookA settings file for an unattended agent denies Bash(git push:), Bash(pm2:) etc. Fix: Keep the deny rules but add a PreToolUse hook on Bash that inspects the full command and exits with status 2 to block (stderr is…
- macOS Screen Recording/Screenshot filenames: "No such file or directory" because of a hidden U+202F before AM/PMffmpeg -i "Screen Recording 2026-09-30 at 4.57.33 AM.mov" ... Fix: Glob the name instead of typing it, or match the character explicitly: Confirm with ls | grep 'Recording' | xxd | grep -i 'e2 80 af' (UTF-8 bytes of…
- ssh command hangs after starting a background process (nohup ... &): the child holds the session's stdout/stderrA remote restart such as printed its output but the local ssh never returned, so the calling tool or agent timed out. Fix: Fully detach the child from the session's file descriptors: Better, run long-lived processes as…
- `(crontab -l | grep -v PATTERN; echo NEWLINE) | crontab -` under `set -e` installs an EMPTY crontabA deploy script that "replaces one cron line" wiped the whole crontab on a server: Afterwards crontab -l was empty. Fix: Prefer a drop-in file, which is atomic and needs no read-modify-write: If you must edit the user…
- tar from macOS ships ._* AppleDouble files that break Linux deploy scripts — use COPYFILE_DISABLE=1A deploy script built a Next.js app on a Mac, ran tar czf build.tgz .next app lib, extracted it on Linux, then swapped directories under set -e. Fix: Clean up an already-polluted tree with find .