Hacker News new | ask | show | jobs
by tolciho 7 days ago

  printf 'silent data loss' | while read l; do printf '%s\n' "$l"; done
though at the point I need to write

  while IFS= read -r line || [ -n "$line" ]; do
    printf '%s\n' "$line"
  done
I'll use a different language.