diff --git a/docs/shell-split-recipes.md b/docs/shell-split-recipes.md index 8543759a..a43772b6 100644 --- a/docs/shell-split-recipes.md +++ b/docs/shell-split-recipes.md @@ -181,6 +181,22 @@ bash -c 'source ; declare -F | sed "s/declare -f //" | sort' Both gave an identical set (48 and 28 functions). Re-run it after **each** carve, not just at the end. +### Extracting embedded _data_ is free; embedded _code_ is not + +`update_android_hosts.sh` was 870 lines, of which 247 were a heredoc of hosts +entries. Moving that to `data/android_guardian_blocklist.hosts` and `cat`-ing +it cleared the file in one step, and a data file **attracts no linter**. + +Verify with a hash of the heredoc body against the extracted file: + +```bash +git show HEAD: