HP3000-L Archives

February 1996, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Glenn Cole <[log in to unmask]>
Reply To:
Date:
Thu, 15 Feb 1996 12:08:28 PST
Content-Type:
text/plain
Parts/Attachments:
text/plain (43 lines)
THANK YOU, Dan & Randy, for your responses.
 
Randy Medd <[log in to unmask]> wrote:
> If the termination string is quoted,
> the shell won't expand apparent variable references during the cat
> operation.
 
In fact, that is why I was using this in the original problem (as opposed
to the simplified version that I posted here).
 
It's interesting that the termination string worked the same on multiple
platforms for both of you, whereas I get the following:
 
On SunOS 4.1.3, I get
 
{netcom5:6} cat <<'eof' >dummyfile
testing
'eof'
{netcom5:7} cat dummyfile
testing
{netcom5:8}
 
And on MachTen, I get
 
gcMac% cat <<'eof' >dummyfile
testing
'eof'
gcMac% cat dummyfile
testing
gcMac%
 
Both of these are in the C shell on BSD-based machines. (Unfortunately, I
have to be home to enter other test cases.) Also, the book "Teach Yourself
Unix in a Week" by Dave Taylor specifies this functionality. The POSIX
Programmer's Guide that I have appears to cover only function calls, not
differences in the various commands.
 
Thanks for your help!
 
--Glenn Cole
  Software al dente, Inc.
  [log in to unmask]

ATOM RSS1 RSS2