X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: <47FF3841.FEF4C4D9@dessent.net> Date: Fri, 11 Apr 2008 03:06:57 -0700 From: Brian Dessent X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Reg: dirname References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com 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 Manjunatha Appaji Gowda wrote: > please help on this Cygwin's goal is to provide a POSIX environment. That $0 gets POSIX-ified is on purpose; that is the whole point of /cygdrive. Using Win32 paths with drive letters with Cygwin tools is error-prone and sometimes works only by accident, other times not at all. It's not supported. If you really want a Win32 path you need to use cygpath, e.g. echo $(dirname "$(cygpath -m "$0")") Brian -- 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/