FDD-book/content
Edson Brandi cf61c0ff27 Fixed the script to solve the issue reported at https://github.com/ebrandi/FDD-book/issues/2 by johnholloway77
THis fix make the script fully POSIX-compliant for FreeBSD /bin/sh

Replace bash-specific `read -d ''` with tmpfile approach.
The -d option is not available in POSIX sh, causing the script
to fail on FreeBSD systems.

- Use tmpfile=$(mktemp) instead of null-delimited pipe
- Add trap for cleanup
- Remove -print0 and read -d '' options
- Add empty filename safety check

Fixes: read: Illegal option -d
2025-11-03 22:55:24 +00:00
..
appendices feat: Initial upload of FreeBSD Device Drivers Book structure 2025-08-04 09:14:49 -03:00
chapters Fixed the script to solve the issue reported at https://github.com/ebrandi/FDD-book/issues/2 by johnholloway77 2025-11-03 22:55:24 +00:00
images Adding images for chapter 2 2025-08-24 00:04:11 +01:00