Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Wed, 5 Jun 2002 00:11:39 -0400 From: Jon LaBadie To: cygwin AT cygwin DOT com Subject: Re: bash 2.05a-3 scripting problem (read function) Message-ID: <20020605041139.GA3458@butch.jgcomp.com> Mail-Followup-To: Jon LaBadie , cygwin AT cygwin DOT com References: <002101c20c23$ec7b7de0$0200a8c0 AT weiss> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <002101c20c23$ec7b7de0$0200a8c0@weiss> User-Agent: Mutt/1.3.28i On Wed, Jun 05, 2002 at 01:59:51AM +0200, Steven Weiss wrote: > Hi > > I've got a problem with the read function in bash 2.05a-3. > > Example > ------------- > > bash$ > bash$ read proj > /temp > bash$ cd $proj > : No such file or directory > bash$ cd /temp > bash$ pwd > /temp > bash$ test -d $proj > bash$ echo $? > 1 > bash$ test -d /temp > bash$ echo $? > 0 > bash$ > --------------------------------------- > When testing or trying to change directories using $proj it fails. When > using the literal values it passes. It appears that the read function does > not work properly. May be I'm doing something stupid or missing something > completely. I have looked through the FAQs and mail list archives but cannot > find anything similar. Probably the windows CR/LF creeping in again. I'll bet proj contains /temp -- Jon H. LaBadie jcyg AT jgcomp DOT com JG Computing 4455 Province Line Road (609) 252-0159 Princeton, NJ 08540-4322 (609) 683-7220 (fax) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/