Re: Trailing LFs in shell scripts
Re: Trailing LFs in shell scripts
- Subject: Re: Trailing LFs in shell scripts
- From: Philip Aker <email@hidden>
- Date: Mon, 18 Nov 2002 00:08:39 -0800
On Sunday, Nov 17, 2002, at 18:59 US/Pacific, Randal L. Schwartz wrote:
And a file just consisting of sequence "abc" is just a malformed
text file.
Philip> I don't think that's strictly true. I believe unix tools also
consider
Philip> EOF and possibly EOS as a valid terminator. That's what all
the
Philip> beginner C lessons would have one account for.
No. A "unix tool" will read to "end-of-file",
Isn't that what EOF is/means?
which is not indicated by anything *in* the file, but rather by the
meta information in the
inode.
I believe that's why C++ 'ostringstream' works. But you could
elucidate...
The bytes "abc" would be a completely valid file,
Yes,
although many tools will probably rewrite it to "abc\n" if they are
working in a line-oriented fashion.
Yes.
Philip Aker
http://www.aker.ca
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.