delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/12/01/07:27:14

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <60571.212.159.53.2.1101903943.squirrel@212.159.53.2>
In-Reply-To: <F0D7281DAB048B438E8F5EC4ECEFBDDC506C0E@esmail.elsag.de>
References: <F0D7281DAB048B438E8F5EC4ECEFBDDC506C0E AT esmail DOT elsag DOT de>
Date: Wed, 1 Dec 2004 12:25:43 -0000 (GMT)
Subject: RE: Patch to /etc/profile to deal with $HOME with a space
From: "John Morrison" <john AT morrison DOT mine DOT nu>
To: cygwin AT cygwin DOT com
User-Agent: SquirrelMail/1.4.3a
MIME-Version: 1.0

> Hi John,
>
> John Morrison wrote on Wednesday, December 01, 2004 12:32 PM:
>>> mkpasswd.exe -l -c | sed 's/cygdrive\/.*Documents and Settings/home/'
>>> > /etc/passwd
>>>
>>> This is nonsense. "Documents and Settings" is localized.
>>
>> Humm, not nonsense (it works for English), maybe not
>> correct... (is this retrievable for replacement?)
>
> May also not work for English, "cygdrive" is just a default value and is
> settable. In case of my system:
>
>  $ mount -p
>  Prefix              Type         Flags
>  /mnt                system       binmode
>
> You may *assume* it is called "cygdrive" for a new installation, but if
> there are registry entries left from an old one ...
>
>> Anyway, the idea (if not the impl) stands, when a network
>> user installs cygwin HOME is set to doc & settings.  When a
>> local user installs HOME is set to /home/user.  So, should
>> network user functionality be changed? (assuming it's
>> possible to get the localisation)
>
>  $ cygpath -H
>
> Personally I use a mount for home:
>
>  $ mount
>  ...
>  C:\Dokumente und Einstellungen on /home type system (binmode)
>  ...
>
> But this is *my* preference only (and applies not for Win95, Win 98, Win
> NT etc. anyway). Additionally in the pattern /home/user may not apply for
> newer Win OSses also, since the user's profile directory may not have the
> name of the user and unfortunately this information cannot be retrieved
> from cygpath, you may read directly from the registry.

Humm, OK - scratch that idea :)

J.


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019