P
pascal360
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before
posting.
You do not have the permission required to post.
Phil Carmody
View profile
More options Aug 22, 12:53 pm
Newsgroups: comp.lang.c
From: Phil Carmody <[email protected]>
Date: Sat, 22 Aug 2009 13:53:17 +0300
Local: Sat, Aug 22 2009 12:53 pm
Subject: Re: Can C do it ?
Reply | Reply to author | Forward | Print | Individual message | Show
original | Report this message | Find messages by this author
- Hide quoted text -
- Show quoted text -
To post a message you must first join this group.
Please update your nickname on the subscription settings page before
posting.
You do not have the permission required to post.
Phil Carmody
View profile
More options Aug 22, 12:53 pm
Newsgroups: comp.lang.c
From: Phil Carmody <[email protected]>
Date: Sat, 22 Aug 2009 13:53:17 +0300
Local: Sat, Aug 22 2009 12:53 pm
Subject: Re: Can C do it ?
Reply | Reply to author | Forward | Print | Individual message | Show
original | Report this message | Find messages by this author
- Hide quoted text -
- Show quoted text -
[email protected] (Richard Tobin) said:All those shells are probably putting the terminal in raw mode (or at
least a not-fully-cooked mode) and interpreting the characters
themselves.
Absolutely. Context is everything. "under Unix" wasn't quite
enough context to isolate the behaviour posited.
Try it inside "cat" on each system. It should
echo the line after the first one, and exit after the second.
In that context, all of the above perform exactly as you state.
Phil