mirror of
https://github.com/ebrandi/FDD-book.git
synced 2026-12-06 00:23:30 +00:00
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. |
||
|---|---|---|
| .. | ||
| appendices | ||
| chapters | ||
| images | ||