| 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: | <002101c20c23$ec7b7de0$0200a8c0@weiss> |
| From: | "Steven Weiss" <sweiss AT iafrica DOT com> |
| To: | <cygwin AT cygwin DOT com> |
| Subject: | bash 2.05a-3 scripting problem (read function) |
| Date: | Wed, 5 Jun 2002 01:59:51 +0200 |
| MIME-Version: | 1.0 |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400 |
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. Regards Steven Weiss sweiss AT iafrica DOT com -- 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 |