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: 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.