Subject: Re: This has GOT to be a bug in ksh...
To: NetBSD User's Discussion List <netbsd-users@NetBSD.ORG>
From: Daniel Mercer <dmercer@fantoccini.com>
List: netbsd-users
Date: 06/17/2002 10:38:51
Hi folks,


Maybe I'm missing something...

>>> $ touch "Berra =E4ter ost" "Lisa visar rattarna"
>>> $ for f in `find . -type f | sed -e 's/\(.*\)/"\1"/'` ; do echo $f ;=20=

>>> done
>>> "./Berra
>>> =E4ter
>>> ost"
>>> "./Lisa
>>> visar
>>> rattarna"
>>> $

Okay...

>> Oh yeah, I've run into this before.  I never found a fix but here is =
a
>> slow workaround.
>>
>> find . -type f | (while read f; do echo "$f"; done)

Why won't:

find . -type f| cat

work?

It seems to provide the same results as reading from stdin
and echoing to stdout.

Clearly, I'm missing something. =3D)

Dan M.