• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Trailing LFs in shell scripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Trailing LFs in shell scripts (From: Philip Aker <email@hidden>)

  • Prev by Date: Re: Trailing LFs in shell scripts
  • Next by Date: Re: Conserver Processes (was Re: Kill that Daemon)
  • Previous by thread: Re: illustrator: deleting invisible layers?
  • Next by thread: Re: Trailing LFs in shell scripts
  • Index(es):
    • Date
    • Thread