This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: bash 2.04 can't complete ~/name if $HOME set to c:/users/foo?


On Tue, 2 Oct 2001 15:53:11 -0400, Christopher Faylor <cgf@redhat.com> wrote:
> 
> When a cygwin process is first started, it translates these variables from
> MS-DOS format to UNIX format for its internal use.  In most cases, when cygwin
> execs a new process it converts these environment variables back into MS-DOS
> format so that the new process can see native MS-DOS paths.

You have missed the point, IGNORE the HOME variable it is not important.
What is important is the path/filename of the arguments.
See the following example below (no HOME there, I also omitted the -x):

EHUD-P-II-21:02:03-/etc-522# command.com /c echo /c/ehuds/tst.run /d/WIN95/SYSTEM32/DRIVERS/hidgame.sys
/c/ehuds/tst.run /d/WIN95/SYSTEM32/DRIVERS/hidgame.sys

EHUD-P-II-22:02:29-/etc-523# run-win.sh command.com /c echo /c/ehuds/tst.run /d/WIN95/SYSTEM32/DRIVERS/hidgame.sys
c:\ehuds\tst.run d:\WIN95\SYSTEM32\DRIVERS\hidgame.sys

EHUD-P-II-22:08:00-/etc-526# command.com /c notepad /c/ehuds/tst.run
       [error message box - Could not open /c/ehuds/tst]
EHUD-P-II-22:08:13-/etc-527# run-win.sh command.com /c notepad /c/ehuds/tst.run
       [editing of existing file]

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@unix.simonwiesel.co.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]