X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_40,SPF_PASS X-Spam-Check-By: sourceware.org X-IronPortListener: Outbound_SMTP From: "Buchbinder, Barry (NIH/NIAID) [E]" To: "'cygwin AT cygwin DOT com'" Date: Fri, 29 May 2009 15:20:28 -0400 Subject: cygpath -a anomaly Message-ID: <0105D5C1E0353146B1B222348B0411A201BCE5EB09@NIHMLBX02.nih.gov> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 With cygdrive prefix =3D /, from the root directory of a drive (e.g., /c =3D c:\ or /h =3D h:\), when asking for the absolute unix path with -au, cygpath doubles the / between the drive letter and the first directory of the path. /h> echo Home | cygpath -au -f - /h//Home /h> echo Home | cygpath -aw -f - h:\Home This does not happen when one is not in the root directory of the drive. /h> cd Home /h/Home> echo cartoons | cygpath -au -f - /h/Home/cartoons /h/Home> echo cartoons | cygpath -aw -f - h:\Home\cartoons This does not happen when /h> cd .. /h> echo Home\\cartoons | cygpath -au -f - /h//Home/cartoons /h> echo Home/cartoons | cygpath -aw -f - h:\Home\cartoons This is with cygwin 1.5, everything up to date. Note that this also happens on C:. Cygwin is in c:\\cygwin. - Barry Disclaimer: Statements made herein are not made on behalf of NIAID. -- 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/