cygwin drops cygprefix too often (very repeatable)

Linda Walsh cygwin@tlinx.org
Fri Jun 6 18:53:00 GMT 2014


I have my cygprefix set to '/' (normally) and everything
works from there.

But I noticed a problem now (didn't used to happen when
we were '32 bit only)..

but when I am in *Explorer", I had an option to open a bash shell
at the current location.

I modified that slightly to give 2 options bash32 or bash64.

Both have similar oprobs but slightly different error messages.

1 problem is that my mount prefix being ignored for drive C:

Normally, my mounts look like:
law.Bliss> mount
C:/bin on /usr/bin type ntfs (binary,auto)
C:/lib on /usr/lib type ntfs (binary,auto)
C: on / type ntfs (binary,auto)
B: on /b type smbfs (binary,user,noumount,auto)
D: on /d type smbfs (binary,user,noumount,auto)
E: on /e type udf (binary,user,noumount,auto)
H: on /h type smbfs (binary,user,noumount,auto)
I: on /i type smbfs (binary,user,noumount,auto)
M: on /m type smbfs (binary,user,noumount,auto)
P: on /p type smbfs (binary,user,noumount,auto)
S: on /s type smbfs (binary,user,noumount,auto)
T: on /t type smbfs (binary,user,noumount,auto)
law.Bliss> mount -p
Prefix              Type         Flags
/                   user         binmode
-----------------
When I invoke from explorer the path is messed up, likely because
of the cygprefix being corrupted.
Path looks like this:
/t/Library/2013Q4> echo $PATH
/Users/law.Bliss/bin/lib:.:/t/prog64/vim:/t/bin:/t/sbin:/c/prog/sysinternals/cmd:
...:/usr/local/bin:/Users/law.Bliss/bin:/etc/local/func_lib
---
Problem is seen on 1st line '/t/{prog64,bin,sbin} should all be off of
drive 'c'.  My mounts are now:
/t/Library/2013Q4> mount
C:/cygwin64/bin on /usr/bin type ntfs (binary,auto)
C:/cygwin64/lib on /usr/lib type ntfs (binary,auto)
C:/cygwin64 on / type ntfs (binary,auto)
B: on /b type smbfs (binary,posix=0,user,noumount,auto)
C: on /c type ntfs (binary,posix=0,user,noumount,auto)
D: on /d type smbfs (binary,posix=0,user,noumount,auto)
E: on /e type udf (binary,posix=0,user,noumount,auto)
H: on /h type smbfs (binary,posix=0,user,noumount,auto)
I: on /i type smbfs (binary,posix=0,user,noumount,auto)
M: on /m type smbfs (binary,posix=0,user,noumount,auto)
P: on /p type smbfs (binary,posix=0,user,noumount,auto)
S: on /s type smbfs (binary,posix=0,user,noumount,auto)
T: on /t type smbfs (binary,posix=0,user,noumount,auto)
/t/Library/2013Q4> mount -p
Prefix              Type         Flags
/                   user         binmode

Notice the artificial mounts placed by cygwin are all wrong
and the path is corrupt:

/t/Library/2013Q4> ls
bash: ls: command not found

/etc/fstab has:
# For a description of the file format, see the Users Guide
# http://cygwin.com/1.7/cygwin-ug-net/using.html#mount-table

none / cygdrive binary,posix=0,user 0 0

Why are my mounts being change and, more importantly, how might
I fix this?


Thanks!

p.s. uname -a:
CYGWIN_NT-6.1 Athenae 1.7.29(0.272/5/3) 2014-04-07 13:46 x86_64 Cygwin




--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list