Task: Fix SSH Breaking While-Loop in Bash Script
Task: Fix SSH Breaking While-Loop in Bash Script: a task in Terminal-Lego-15k (Harbor dataset). When using find with a pipe to while read to handle filenames with spaces, the ssh command inside the loop causes the loop to exit prematurely after the first iteration. This happens because ssh reads…
The task
When using `find` with a pipe to `while read` to handle filenames with spaces, the `ssh` command inside the loop causes the loop to exit prematurely after the first iteration. This happens because `ssh` reads from stdin, consuming the input that was meant for the `while read` loop.
Part of PrimeIntellect/Terminal-Lego-15k.