From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from oldp.astro.wisc.edu ([128.104.39.15]) by hawkwind.utcs.toronto.edu with SMTP id <2761>; Sat, 5 Jun 1993 12:43:14 -0400 Received: by oldp.astro.wisc.edu (5.65/DEC-Ultrix/4.3) id AA00477; Sat, 5 Jun 1993 11:42:48 -0500 Message-Id: <9306051642.AA00477@oldp.astro.wisc.edu> To: John (Most modern computers would break if you stood on them) Mackin Subject: Re: here strings Cc: rc@hawkwind.utcs.toronto.edu Date: Sat, 5 Jun 1993 12:42:48 -0400 From: Alan Watson X-Mts: smtp Sorry, John, but I'm not convinced by your example, although there may be something I have missed. The precise behaviour of your example can be reproduced by: for ( f in * ) mv $f `{ echo -n $f | tr A-Z a-z } assuming echo is built-in (or an external, non-SYSV echo). I strongly suspect that your here-string solution is not very much faster than this one, if echo is a built-in command. So, I would tentatively class your idiom as a speed hack on a system without a built-in echo (like some of the means of getting at the file system through the globber and builtin cd). As I see it, the justification for here-strings is that echo is not a necessarily available as a built-in, and so one cannot reliably convert a here-document to a a series of echoes.