delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/04/05/14:25:04

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Thu, 5 Apr 2012 20:24:16 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: [ANNOUNCEMENT] Updated: Cygwin 1.7.12
Message-ID: <20120405182416.GZ13898@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <announce DOT 20120403143701 DOT GA19014 AT calimero DOT vinschen DOT de> <87y5qbz5ye DOT fsf AT Rainer DOT invalid> <20120405101859 DOT GM13898 AT calimero DOT vinschen DOT de> <87bon6rxfd DOT fsf AT Rainer DOT invalid> <20120405161505 DOT GY13898 AT calimero DOT vinschen DOT de> <877gxurqss DOT fsf AT Rainer DOT invalid>
MIME-Version: 1.0
In-Reply-To: <877gxurqss.fsf@Rainer.invalid>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

On Apr  5 20:12, Achim Gratz wrote:
> Corinna Vinschen writes:
> > On Apr  5 17:49, Achim Gratz wrote:
> >> I don't have any problems with the question marks showing up in
> >> directory listings, I would just prefer if a user that has no home
> >> directory set in /etc/passwd is not offered as an expansion for '~'.
> >
> > Expansion is done by the shell, not by Cygwin.
> 
> Yes, but since there is no entry for the home dir in passwd for these
> users, the association with /mnt/userdata/ must come from the way Cygwin
> interprets them.

No.  Cygwin just provides the naked data.  The rest is entirely
in the jurisdiction of the application using the data.  Just as on
any other OS.

> Is there any harm to set a different (maybe even
> non-existing) home directory in passwd for these accounts?  That would
> likely solve that problem, I'd think.

Not at all.  Follow my suggestion and add an entry for the ????????
user with a non-existent dir "/foo" to /etc/passwd.  The shell will
dilligently pick up the entry and `cd ~\?\?\?\?\?\?\?\?' will result
in a "/foo: No such file or directory" message.

If you think this should be changed, you will have to complain upstream
in the bash or dash or mksh or tcsh or zsh developer's mailing list.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

- Raw text -


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