Re: The infamous ^Z problem
- From: Keith Thompson <kst-u@xxxxxxx>
- Date: Thu, 24 May 2007 13:25:56 -0700
CBFalconer <cbfalconer@xxxxxxxxx> writes:
Eigenvector wrote:
... snip ...
Actually `tr` absolutely doesn't work here, the ^Z is its death
(same with sed, batch VI, and a host of other shell related
commands), but I won't discuss that here. Besides I will at some
point need to port this to Windoze.
Then you should probably be using EOF. The Unix/Linux equivalent
of ^Z is ^D. Depends on where your input originates.
Eigenvector was talking about ^Z characters (ASCII 26) in a file.
Since he was opening the input file in binary mode, the character used
to signal an end-of-file on interactive input should be irrelevant.
I still don't know why he was having the problems he described, but
he's since solved them.
--
Keith Thompson (The_Other_Keith) kst-u@xxxxxxx <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
.
- References:
- The infamous ^Z problem
- From: Eigenvector
- Re: The infamous ^Z problem
- From: Keith Thompson
- Re: The infamous ^Z problem
- From: Eigenvector
- Re: The infamous ^Z problem
- From: CBFalconer
- The infamous ^Z problem
- Prev by Date: Re: problem with float
- Next by Date: Re: problem with float
- Previous by thread: Re: The infamous ^Z problem
- Next by thread: Re: The infamous ^Z problem
- Index(es):
Relevant Pages
|