cygwin.rst
changeset 2483 0b99270832a0
parent 2336 4cd18bed8bac
child 2484 fcb00dfa7e23
equal deleted inserted replaced
2482:b6e75fabe00b 2483:0b99270832a0
    22 passed verbatim from native Windows apps. So you will unable to do ``ls *`` from ``cmd.exe``. But
    22 passed verbatim from native Windows apps. So you will unable to do ``ls *`` from ``cmd.exe``. But
    23 without this option (``glob`` is default) Mercurial patterns, like ``{rev}`` are broken. For me
    23 without this option (``glob`` is default) Mercurial patterns, like ``{rev}`` are broken. For me
    24 native Windows Emacs can't determine file revision with my ``hg`` wrapper.
    24 native Windows Emacs can't determine file revision with my ``hg`` wrapper.
    25 
    25 
    26 https://cygwin.com/cygwin-ug-net/using-cygwinenv.html
    26 https://cygwin.com/cygwin-ug-net/using-cygwinenv.html
    27   The CYGWIN environment variable. Available options.
    27   The ``CYGWIN`` environment variable. Available options.
    28 
    28 
    29 Set ``HOME`` env var::
    29 Set ``HOME`` env var::
    30 
    30 
    31   set HOME=c:\home
    31   set HOME=c:\home
    32 
    32 
   280   $ mkpasswd -d | grep $yourlogin > /etc/passwd  # if you in Windows domain
   280   $ mkpasswd -d | grep $yourlogin > /etc/passwd  # if you in Windows domain
   281   $ mkpasswd -l > /etc/passwd                    # if you in Windows domain
   281   $ mkpasswd -l > /etc/passwd                    # if you in Windows domain
   282 
   282 
   283   $ mkgroup -l > /etc/group
   283   $ mkgroup -l > /etc/group
   284 
   284 
   285 Adding mount points.
   285 Adding mount points
   286 ====================
   286 ===================
       
   287 
       
   288 In Cygwin the 3rd parameter (FS type) has special meaning:
       
   289 
       
   290 * ``cygdrive`` defines prefix to Windows disk letters like ``c:``.
       
   291 * ``usertemp`` defines location of temp directory.
   287 
   292 
   288 ``/etc/fstab``::
   293 ``/etc/fstab``::
   289 
   294 
   290   C:/foo /bar/baz ntfs text,posix=0 0 0
   295   none /cygdrive    none binary,posix=0,user,noacl 0 0
   291   /var /usr/var none bind
   296   c:/opt/   /opt    none binary,noacl,user,posix=0 0 0
       
   297   d:/backup /backup none binary,noacl,user,posix=0 0 0
       
   298   /var     /usr/var none bind
       
   299 
       
   300 https://cygwin.com/cygwin-ug-net/using.html#mount-table
       
   301   The Cygwin Mount Table. Description of supported keys.
   292 
   302 
   293 Running X Window.
   303 Running X Window.
   294 =================
   304 =================
   295 ::
   305 ::
   296 
   306