From: Bill C. Riemers (bcr@bohr.physics.purdue.edu)
Date: 04/15/93


From: bcr@bohr.physics.purdue.edu (Bill C. Riemers)
Subject: Re: The dangers of playing with shared libraries
Date: 15 Apr 1993 17:02:45 GMT

In article <1993Apr14.190247.27211@Princeton.EDU> you write:
>In article <1993Apr14.095640.28923@nessie.mcc.ac.uk> LeBlanc@mcc.ac.uk writes:
>>In article <1993Apr13.025258.16555@Princeton.EDU> qpliu@princeton.edu writes:
>I suppose I should have thought to use:
>
>(IFS=; while read x; do echo "$x";done <file)
>
>which works correctly.

Nice, assuming you use sh or bash. Use tcsh users would have to use:

set command = "\
while ( 1 == 1 ) \
  set x = "\"\$\<\"" \
  echo "\"\$x:q\"" \
end \
"
(echo -n "";eval $command:q) < file >> output_file

This would work under tcsh, but not csh. (I suspect a csh user would
have no recourse!)

Anyways, I think the point of these tricks is that they work, but are
not obvious exspecially to a person who is panicing because nothing
works! Anyways now that sash is available, this is really a mute point.

                                  Bill