Re: Trailing LFs in shell scripts
Re: Trailing LFs in shell scripts
- Subject: Re: Trailing LFs in shell scripts
- From: Axel Luttgens <email@hidden>
- Date: Mon, 18 Nov 2002 09:25:50 +0100
Randal L. Schwartz a icrit:
>
>>>>>"Philip" == Philip Aker <email@hidden> writes:
>
>>>>>
>
>>>>>
>
>
Philip> On Saturday, Nov 16, 2002, at 18:47 US/Pacific, Axel Luttgens 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", which is not indicated
>
by anything *in* the file, but rather by the meta information in the
>
inode. The bytes "abc" would be a completely valid file, although
>
many tools will probably rewrite it to "abc\n" if they are working
>
in a line-oriented fashion.
>
>
>
Thanks, Randall. I couldn't have stated it more clearly as you did (ah,
that language barrier..).
Of course, I never meant that a file just consisting of sequence "abc"
would be viewed as invalid by the file system, nor that an end of file
couldn't terminate a command.
I was just speaking about a convention, and that important word seems to
have been lost somewhere in the thread ;-)
_______________________________________________
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.