delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/08/18/12:33:57

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Wed, 18 Aug 2004 12:33:06 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: neal somos <nsomos AT yahoo DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: read command available?
In-Reply-To: <20040818162525.3957.qmail@web60404.mail.yahoo.com>
Message-ID: <Pine.GSO.4.61.0408181231120.1878@slinky.cs.nyu.edu>
References: <20040818162525 DOT 3957 DOT qmail AT web60404 DOT mail DOT yahoo DOT com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

On Wed, 18 Aug 2004, neal somos wrote:

> I literally cut and pasted a portion of Svend's post.
> The portion I thought I used was ...
> ------------------------
> ls | while read TEST
> do
>      echo $TEST
> done
> ------------------------
> 
> I asked for 'ksh' and pasted.
> I was totally flabbergasted when I got the exact response Svend had 
> posted.
> -----------------
> Is the read command somewhere available? Up to now I wasn't able to find
> it.
> -----------------
> 
> I was intrigued and tried it again, but this time it worked properly 
> producing the list of expected file names.
> 
> And under sh and bash I would get the expected list of file names.
> 
> That fact that it did not seem to reproduce on subsequent attempts is 
> puzzling.  While such things are possible I begin to question my sanity 
> when I have trouble finding what could have printed that message. 
> Grepping through strings of everything in bin failed to reveal where 
> this might have come from.
> 
> Unfortunately I did one too many exits in the rxvt shell window, and 
> cannot even go back to ensure I entered the commands I believe I 
> entered.  All subsequent attempts have been well behaved.
> 
> I fear that I may have been suffering from both caffeine and sleep 
> insufficiency and cut and pasted too much.  For the sake of my sanity I 
> hope that someone else can reproduce this.

Hmm, looks like you must have grabbed those lines when you copied...  I 
just tried it, and got the expected file listing.  Go figure...
If someone *is* able to reproduce it, I'd be *very* interested in seeing a 
simple testcase(tm).
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019