From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1292 invoked by alias); 28 Nov 2014 22:35:12 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 1278 invoked by uid 89); 28 Nov 2014 22:35:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.2 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_BODY_URIBL_PCCC,KAM_FROM_URIBL_PCCC,KAM_THEBAT,RCVD_IN_JMF_BR,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: smtp.ht-systems.ru Received: from smtp.ht-systems.ru (HELO smtp.ht-systems.ru) (78.110.50.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 28 Nov 2014 22:35:09 +0000 Received: from [91.78.178.160] (helo=darkdragon.lan) by smtp.ht-systems.ru with esmtpa (Exim 4.80.1) (envelope-from ) (Authenticated sender: postmaster@rootdir.org) id 1XuU7z-0000Wh-Rl ; Sat, 29 Nov 2014 01:35:03 +0300 Received: from [192.168.1.10] (HELO daemon2) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Fri, 28 Nov 2014 22:21:36 -0000 Date: Sat, 29 Nov 2014 09:36:00 -0000 From: Andrey Repin Reply-To: cygwin@cygwin.com Message-ID: <1601998502.20141129012136@yandex.ru> To: Corinna Vinschen , cygwin@cygwin.com Subject: Re: RFC: 1.7.33 problem with user's home directory In-Reply-To: <20141128163305.GN3810@calimero.vinschen.de> References: <20141110205216.GJ2782@calimero.vinschen.de> <0B8D23F7-0258-472D-BF38-860402FD3CDC@etr-usa.com> <20141111101821.GO2782@calimero.vinschen.de> <20141111111437.GB28012@calimero.vinschen.de> <20141126205658.GA9157@calimero.vinschen.de> <20141127170042.GE3810@calimero.vinschen.de> <8610043342.20141128150810@yandex.ru> <20141128124814.GM3810@calimero.vinschen.de> <5354135.20141128190818@yandex.ru> <20141128163305.GN3810@calimero.vinschen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-11/txt/msg00629.txt.bz2 Greetings, Corinna Vinschen! > On Nov 28 19:08, Andrey Repin wrote: >> > If we implement the above, we >> > would just have to add a cmd wrapper script in /bin to make sure >> > $PATH is set correctly and to make sure CMD starts up in $HOME, >> > something along the lines of: >> >> > $ cat /bin/cmd >> > #!/bin/dash >> > PATH=/bin:$PATH >> > cd $HOME >> > # Don't rely on COMSPEC! >> > cmd=$(cygpath -ua "${SYSTEMROOT}\\System32\\CMD.EXE") >> > exec "${cmd}" >> >> I hope you don't expect it to work inside mintty. > Oh, it does. CMD itself isn't the biggest problem, many other native > tools are. Yes, CMD itself do output... something. As long as encoding isn't an issue. But I have PROMPT=%USERNAME%%COMPUTERNAME%. Imagine if one of them turned out to contain non-ASCII characters. >> Cygwin tools may function >> properly in this case, but the shell itself - I have my doubts. And other >> native tools would certainly have issues with encoding, if not with any output >> at all. >> Said that, it would need to be a simple .cmd file, so that it'd run in native >> console. >> Something like >> >> @ECHO OFF >> PATH=%~dp0;%PATH% >> START "" /B "%SystemRoot%\System32\cmd.exe" /K >> EXIT > Fine with me, but it also has to cd to %HOME%, which is given in > POSIX syntax... That may be an issue, unless %HOME% is set somewhere else. If you have ideas, where to look, I may be able to provide the code to do it. -- WBR, Andrey Repin (anrdaemon@yandex.ru) 29.11.2014, <01:17> Sorry for my terrible english... -- 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