• 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: Philip Aker <email@hidden>
  • Date: Sun, 17 Nov 2002 15:13:19 -0800

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.

I don't think that's strictly true. I believe unix tools also consider EOF and possibly EOS as a valid terminator. That's what all the beginner C lessons would have one account for.


That is, since most unix commands expect either text on their standard input or to write text on their standard output, ...

They expect a file. stdin, stdout, and stderr are files to unix and implicit in 'printf' (which is what the unix tools commonly access to attain input or output). These are the big fellas:

int vfprintf __P((FILE *, const char *, _BSD_VA_LIST_));
int vsprintf __P((char *, const char *, _BSD_VA_LIST_));
int vasprintf __P((char **, const char *, _BSD_VA_LIST_));


Regards,

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.

  • Follow-Ups:
    • illustrator: how to kill these legends?
      • From: Michael Stoll <email@hidden>
References: 
 >Re: Trailing LFs in shell scripts (From: Axel Luttgens <email@hidden>)

  • Prev by Date: [ANN] New FooDoo
  • Next by Date: illustrator: how to kill these legends?
  • Previous by thread: Re: Trailing LFs in shell scripts
  • Next by thread: illustrator: how to kill these legends?
  • Index(es):
    • Date
    • Thread