Craft Anything: understand how any software works, and craft your own.
Rust
Pitfall: never type python - with a heredoc (#181)
BFlat39ca993b2048
diff --git a/docs/pitfalls.md b/docs/pitfalls.mdindex 321e6389..0c59e076 100644--- a/docs/pitfalls.md+++ b/docs/pitfalls.md@@ -376,6 +376,8 @@ the tool timed out, with work left in a stash. Never run anything that can pageIt happened again from a leftover first line (`python -I - <<'X'` with nothing before `X`) in acommand that then wrote and ran a script: 10 minutes lost. Write the script with the editortool and run only `python -I <file>`.+And twice more in one night, each time a `python -I - <<'X'` with an empty body typed as a+throwaway step in a longer command. There is no safe use of `python -` here: never type it.**A search that ran no search.** `timeout 40 find … 2>/dev/null` on a Mac: there's no `timeout` there,the error went to `/dev/null`, and the empty result read as "no such files on this computer". Don't