Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!cica!iuvax!purdue!bu-cs!dartvax!eleazar.dartmouth.edu!earleh
From: earleh@eleazar.dartmouth.edu (Earle R. Horton)
Newsgroups: comp.sys.mac.programmer
Subject: Re: A problem with MPW....
Message-ID: <15076@dartvax.Dartmouth.EDU>
Date: 17 Aug 89 19:15:33 GMT
References: <13644@polyslo.CalPoly.EDU>
Reply-To: earleh@eleazar.dartmouth.edu (Earle R. Horton)
Organization: Thayer School of Engineering
Lines: 25

In article <13644@polyslo.CalPoly.EDU> dorourke@polyslo.CalPoly.EDU
	(David M. O'Rourke) writes:
...
>  for dir_name in `files -d | translate : ''`
>    [do_some stuff]
>  end
>
>  translate dies complaining that
> "# MPW.Pipe.# isn't of type TEXT, terminate and screw you "
>
     Try:

for dir_name in `files {MPW} -d > {MPW}MPW.mypipe; translate < option-d
	{MPW}MPW.mypipe : ''`
echo {dir_name}		# Yep, works!
end

>  Anyone have any ideas, short of me writting my own translate that won't
>care about the file type.

     Show the computer who's boss (you) by defining your own pipe
file.  Use a unique name for the file, and remember to delete it when
done if you don't want it hanging around.

Earle R. Horton