From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11190 invoked by alias); 28 Nov 2014 16:33:09 -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 11180 invoked by uid 89); 28 Nov 2014 16:33:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: calimero.vinschen.de Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 28 Nov 2014 16:33:07 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 227028E1439; Fri, 28 Nov 2014 17:33:05 +0100 (CET) Date: Fri, 28 Nov 2014 18:34:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: RFC: 1.7.33 problem with user's home directory Message-ID: <20141128163305.GN3810@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com 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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vYzPTKoKRdF40tnF" Content-Disposition: inline In-Reply-To: <5354135.20141128190818@yandex.ru> User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2014-11/txt/msg00623.txt.bz2 --vYzPTKoKRdF40tnF Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1219 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: >=20 > > $ cat /bin/cmd > > #!/bin/dash > > PATH=3D/bin:$PATH > > cd $HOME > > # Don't rely on COMSPEC! > > cmd=3D$(cygpath -ua "${SYSTEMROOT}\\System32\\CMD.EXE") > > exec "${cmd}" >=20 > 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. > 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 o= utput > at all. > Said that, it would need to be a simple .cmd file, so that it'd run in na= tive > console. > Something like >=20 > @ECHO OFF > PATH=3D%~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... Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --vYzPTKoKRdF40tnF Content-Type: application/pgp-signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJUeKPAAAoJEPU2Bp2uRE+gaDIP/jPT26fVWIbSgNZU0aRX9Gby l/hguVUqkcu/g2D/6U3ZCmewaiJlG3I3TTxvTSag3gp0gEeF0YaE/s2SRaPn34i+ cBNNwCFEX9SDGNvHpPsZwqQaQPoOxV2+s6jtOzTLEZitx0lqzE/iLwsPNVOH6gvS Jc1Q6bfwbTqUZBqfFB55FPM0+PH27f2dZz6ge63gqgCsGHlHGkZTXEN8bYJyzSpT Afe46y44uMoCAEpW/53KqUTGhoGzNAjdMfRNoTuPUt/mUlZPSK46b/kSiHCRI8pN Zs1Ws0iX29MJH45RBKPYTG1KEasvjp6hSD3rvS3j6mbZAKA32rJoR3z2GaXykzvJ Hm0TivfbnNzbHGzR0OVXWLNQjvikgrqn4LaVfFllL6x+cyAgTrmwpfsl6EGM+/CP S1RnpkgYGfcA4m8tgM6MjHUFwat5caf/+1lQ8jzLwEuNZSS8bMVjBPaYCVuzYann qJUl0X9TX8IPJcipcUsxa6IU15e/rgYGLJ8A/t+oyrRSZp1FsF/l0KipvRG32Exx 3ftIubIQYxM+3XxvGpMP51IF2LhWd/lDZra+mK+qQ+ys7F1qvrayfXSt9eyNSqOg DeI7EcPC/9gnaIJw7/Po5aQAH/OgdrjFe28LNeuVypj5AtSW8ZmGuBfkAshE9IKW zkeZKXzA6Py6PwySGKqG =hair -----END PGP SIGNATURE----- --vYzPTKoKRdF40tnF--