[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: read -d'' -n1

From: Jan Schampera
Subject: Re: read -d'' -n1
Date: Thu, 12 Aug 2010 07:46:21 +0200
User-agent: Mozilla-Thunderbird (X11/20100329)

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 :(



reply via email to

[Prev in Thread] Current Thread [Next in Thread]