Jan Schampera wrote:

1) Why doesn't this print anything

while read -d'' -n1 ch; do
  echo "$ch"
done <<< $'hello\nworld'


2) Why does this print something, but only up to the hyphen?

while read -d'' -n1 ch; do
  echo "$ch"
done <<< $'hello\nwor-ld'


Please ignore this question. 2 minutes after sending it, I saw my stupid mistake :(

Sorry...

J.

Reply via email to