Fw: Bug set -o posix and "cd ."

Lloyd J. Lewins llewins@raytheon.com
Mon Dec 13 23:41:00 GMT 2004

In bash, after entering posix mode (set -o posix), if the current path is a
mounted UNC path, then cd fails. For example:

bash-2.05b$ mount
c:\cygwin\usr\X11R6\lib\X11\fonts on /usr/X11R6/lib/X11/fonts type system
\\es-eng-essfile\users\00c3197 on /home/00c3197 type user (binmode)
\\es-eng-essfile\hpps on /home/hpps type system (binmode)
c:\cygwin\bin on /usr/bin type system (binmode)
c:\cygwin\lib on /usr/lib type system (binmode)
c:\cygwin on / type system (binmode)
c: on /c type system (binmode)
d: on /d type system (binmode)
i: on /i type system (binmode)
j: on /j type system (binmode)
l: on /l type system (binmode,noexec)
e: on /cygdrive/e type user (binmode,noumount)
f: on /cygdrive/f type user (binmode,noumount)
g: on /cygdrive/g type user (binmode,noumount)
s: on /cygdrive/s type user (binmode,noumount)
bash-2.05b$ pwd
bash-2.05b$ cd .
bash-2.05b$ set -o posix
bash-2.05b$ cd .
bash: cd: .: No such file or directorybash: cd: .: No such file or directory

This really clobbers configure scripts (which use the POSIX mode).

Others have seen this problem, for example:


Lloyd Lewins
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 31449 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20041213/505140db/attachment.obj>
-------------- next part --------------
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/

More information about the Cygwin mailing list