From: | Andrija Antonijevic |
Date: | 06 Aug 99 at 14:33:40 |
Subject: | Re: Input buffering weirdness (was Status of pools.lib) |
From: Andrija Antonijevic <TheAntony2@bigfoot.com>
History books say that Ben Hutchings spoke these words on 03-Avg-99 AD.
>On Fri, Jul 30, 1999 at 03:21:01AM +0200, Andrija Antonijevic wrote:
><snip>
[SNIP my "When read from Input() there's a newline at the beginning,
it's not there when Flush() is done before reading" question]
>When the shell starts a command, it puts the command arguments into
>the buffer of the standard input stream. I think this is done for
>ancient compatibility with BCPL programs; maybe this is how TRIPOS
>passes command arguments.
>Arguments start after the first blank after the command name, and
>continue up to and including the end-of-line, so in this case they
>consist of just the new-line character.
I bet this is the place when someone recommends the Guru Book ;)
I had absolutely no idea about this...
>This is hinted at in the autodocs for CreateNewProc, ReadArgs,
>RunCommand and SetVBuf.
Hmmm, I'm off to read the whole autodocs at once, it seems that
Ben has already done that :) Thanks a lot, Ben! I was really
curious, just had to know why this happens :)
/// /_\ _ _| |_ ___ _ _ _ _ http://www.bigfoot.com/~TheAntony
__ /// / _ \| ' \ _/ _ \ ' \ || | Amiga Translators' Organization
\\\/// /_/ \_\_||_\__\___/_||_\_, | (*Serbian department*)
\XX/ TheAntony@bigfoot.com |__/ Team *AMIGA*
Proofread carefully to see if you any words out.