delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 |
Message-Id: | <5.1.0.14.0.20020605113631.08ab3008@pop.ma.ultranet.com> |
X-Sender: | lhall AT pop DOT ma DOT ultranet DOT com |
Date: | Wed, 05 Jun 2002 11:39:23 -0400 |
To: | "Steven Weiss" <sweiss AT iafrica DOT com>, <cygwin AT cygwin DOT com> |
From: | "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com> |
Subject: | Re: bash 2.05a-3 scripting problem (read function |
In-Reply-To: | <007301c20cae$bbc6b580$0200a8c0@weiss> |
Mime-Version: | 1.0 |
Try: echo $proj | od -c If the \r shows up, then you have some weird line-ending problem. If not, you likely have some other installation issue or non-Cygwin related problem. Larry Hall lhall AT rfk DOT com RFK Partners, Inc. http://www.rfk.com 838 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX At 12:33 PM 6/5/2002, Steven Weiss wrote: >I've echo $proj and get >/temp > >so I'm not sure what the problem is. Possibly a hidden control-m. What next? > >Regards >Steven > > >> 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<CR> > >-- >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/ > > > > > >-- >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/ -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |