This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

bash 2.05a-3 scripting problem (read function)


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@iafrica.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]