FDD-book/content/chapters
Edson Brandi 712daf6c49 Fix subshell variable scope issue in file counting scripts
The count variable was not being updated because the while loops were
running in subshells created by the pipe operator. Variable assignments
in subshells don't affect the parent shell, causing count to remain 0.

Changes:
- list_files.sh: Changed from pipe to here-document with command
  substitution to keep the while loop in the main shell
- list_files_bash.sh: Changed from pipe to process substitution using
  < <(...) syntax to avoid subshell creation for the while loop

Both scripts now correctly display the total number of files found.
2025-11-07 21:53:51 +00:00
..
part1 Fix subshell variable scope issue in file counting scripts 2025-11-07 21:53:51 +00:00
part2 docs(book): add Chapter 6 draft (Anatomy of a FreeBSD Driver) 2025-11-01 16:37:18 +00:00
part3 feat: Initial upload of FreeBSD Device Drivers Book structure 2025-08-04 09:14:49 -03:00
part4 feat: Initial upload of FreeBSD Device Drivers Book structure 2025-08-04 09:14:49 -03:00
part5 feat: Initial upload of FreeBSD Device Drivers Book structure 2025-08-04 09:14:49 -03:00
part6 feat: Initial upload of FreeBSD Device Drivers Book structure 2025-08-04 09:14:49 -03:00
part7 feat: Initial upload of FreeBSD Device Drivers Book structure 2025-08-04 09:14:49 -03:00