For Loops and Space in Names

Cameron Simpson cs at zip.com.au
Wed Dec 10 03:54:02 UTC 2008


On 09Dec2008 20:55, Dave Ihnat <dihnat at dminet.com> wrote:
| On Wed, Dec 10, 2008 at 01:31:45PM +1100, Cameron Simpson wrote:
| > BTW, you know that this: ...
| 
| Yes, I was doing bad pseudocode; it usually would be something like:
| 
|     exec 0</etc/passwd
|     while read inline
|     do
|       ...
|     done
| 
| or "done </etc/passwd" as you wrote it.

Yah. Like you, I prefer the former "exec" style. Keeps the redirect up the
front where it can be seen. Cheers,
-- 
Cameron Simpson <cs at zip.com.au> DoD#743




More information about the fedora-list mailing list