delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/10/02/15:36:55

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Tue, 2 Oct 2001 21:26:34 +0200
Message-Id: <200110021926.VAA31467@linux.>
From: "Ehud Karni" <ehud AT unix DOT simonwiesel DOT co DOT il>
To: cygwin AT cygwin DOT com
Subject: Re: bash 2.04 can't complete ~/name if $HOME set to c:/users/foo?
In-reply-to: <20011002151229.A1904@redhat.com> (message from Christopher
Faylor on Tue, 2 Oct 2001 15:12:29 -0400)
Organization: Mivtach-Simon Insurance agencies
Reply-to: ehud AT unix DOT simonwiesel DOT co DOT il
References: <5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20011001192343 DOT 00a74568 AT pop DOT atg DOT com> <5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20011001192343 DOT 00a74568 AT pop DOT atg DOT com> <5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20011002102745 DOT 00a6df08 AT pop DOT atg DOT com> <20011002134419 DOT E12071 AT redhat DOT com> <200110021901 DOT VAA28178 AT linux.> <20011002151229 DOT A1904 AT redhat DOT com>
X-Mailer: Emacs 20.7.1 rmail (send-msg 1.105)
MIME-Version: 1.0

On Tue, 2 Oct 2001 15:12:29 -0400, Christopher Faylor <cgf AT redhat DOT com> wrote:
> 
> You left out the part of my email which actually mentions how to solve this
> problem.  There should be no need for cygpath in this case.
> 
> Just set the HOME environment variable to a UNIX path.  It should work fine
> with native windows apps since HOME will be translated back to MS-DOS format
> prior to executing the program.  That's how cygwin works.

I'm sorry to say that you are wrong. It does not work on W98.
Here is my test:

EHUD-P-II-21:17:56-/etc-519# command.com /c echo ~/tst.run $HOME/xxx
/c/ehuds/tst.run /c/ehuds/xxx
EHUD-P-II-21:19:10-/etc-520# run-win.sh command.com /c echo ~/tst.run $HOME/xxx
+ '[' DONE = '' ']'
++ cnvrt_path /c/ehuds
++ cygpath -w /c/ehuds
+ export 'HOME=c:\ehuds'
+ HOME=c:\ehuds
+ CMD=
++ cnvrt_path command.com
++ echo command.com
+ CMD= command.com
++ cnvrt_path /c
++ echo /c
+ CMD= command.com /c
++ cnvrt_path echo
++ echo echo
+ CMD= command.com /c echo
++ cnvrt_path /c/ehuds/tst.run
++ cygpath -w /c/ehuds/tst.run
+ CMD= command.com /c echo c:\ehuds\tst.run
++ cnvrt_path /c/ehuds/xxx
++ cygpath -w /c/ehuds/xxx
+ CMD= command.com /c echo c:\ehuds\tst.run c:\ehuds\xxx
+ command.com /c echo 'c:\ehuds\tst.run' 'c:\ehuds\xxx'
c:\ehuds\tst.run c:\ehuds\xxx

EHUD-P-II-21:24:41-/etc-521# uname -a
CYGWIN_98-4.10 EHUD-P-II 1.3.3(0.46/3/2) 2001-09-12 23:54 i686 unknown

Ehud.


-- 
 Ehud Karni     Mivtach - Simon  Insurance   /"\
 Tel: +972-3-7966-561 Fax: +972-3-7966-667   \ /  ASCII Ribbon Campaign
 (USA) Fax and  voice  mail: 1-815-5509341    X   Against  HTML  Mail
     Better     Safe     Than     Sorry      / \
     mailto:ehud AT unix DOT simonwiesel DOT co DOT il    http://www.simonwiesel.co.il

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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