RE: Reg: dirname

2008-04-11 Thread Manjunatha Appaji Gowda
Brain/Eric Thanks for the replay, yes it works now.. some of our regressions depends on win32 path. Any ways it works now. Thanks Manjunath A -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://c

Re: Reg: dirname

2008-04-11 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Brian Dessent on 4/11/2008 4:06 AM: | If you really want a Win32 path you need to use cygpath, e.g. | | echo $(dirname "$(cygpath -m "$0")") Still not portable - what if the name contains two consecutive spaces, or starts with '-n'? Thi

Re: Reg: dirname

2008-04-11 Thread Brian Dessent
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 t