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 Reply-To: Cygwin List Message-Id: <6.0.1.1.0.20040325102758.03b38100@127.0.0.1> X-Sender: Date: Thu, 25 Mar 2004 10:31:44 -0500 To: Curt Mills , Cygwin List From: Larry Hall Subject: Re: "test -c com1" hangs on some WinXP systems In-Reply-To: References: <6 DOT 0 DOT 1 DOT 1 DOT 0 DOT 20040324194546 DOT 03cadb00 AT 127 DOT 0 DOT 0 DOT 1> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 01:28 AM 3/25/2004, you wrote: >On Wed, 24 Mar 2004, Larry Hall wrote: > >> "com" is a reserved name in Windows. It's best to steer clear of it in >> any context you can. You may be catching it in your "if test -c com1" >> version. > >We'd _love_ to steer clear of it, particularly since /dev/ttyS0 >works for two of our targeted systems. > >We need to know that the "if test -c /dev/ttyS0" will work on all >Cygwin boxes from Win95 through WinXP. The test for "com1" was >working just fine except for very recently on a few WinXP systems >(but appears to work on other WinXP boxes). > >I'm delaying a new release and staying with the "if test -d >/proc/registry" bit until we can get that question answered. That >last works but it's ugly. You're welcome to peruse the Cygwin DLL code for yourself but I see nothing that suggests that /dev/ttyS* is Windows version specific. I can't promise that there aren't bugs that will cause you problems on some Windows O/S version versus another but AFAICS /dev/ttyS* is just a direct mapping to //./com*. So they look synonymous to me under the covers. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- 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/