Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!hao!oddjob!gargoyle!ihnp4!cbosgd!clyde!watmath!orchid!egisin From: egisin@orchid.waterloo.edu (Eric Gisin) Newsgroups: comp.os.minix Subject: Re: Minix 1.2 shell Message-ID: <10150@orchid.waterloo.edu> Date: Sat, 8-Aug-87 10:15:03 EDT Article-I.D.: orchid.10150 Posted: Sat Aug 8 10:15:03 1987 Date-Received: Sun, 9-Aug-87 12:54:09 EDT References: <418@louie.udel.EDU> Organization: U of Waterloo, Ontario Lines: 20 I've haven't received part two either, but this version contains patches that Jim Paradis posted several weeks ago. He tries to implement "<<" redirection with temp files but does it incorrectly. Consider the following shell script. $ for x in a b; do > cat <<. x=$x . > done The shell has to create a temp file with 'x=$x' during parsing, then read the first temp file and do dollar expansion into a second temp file before "cat" is executed. Jim's fixes try to do this with one pass, which is impossible so his version doesn't work for the above example. I reported this bug to ast about a week ago, but I don't think he received my mail. I do have a correct fix for << redirection that uses temp files.