[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [h-e-w] cygwin supbrocess startup directory
From: |
Scott, Steven |
Subject: |
RE: [h-e-w] cygwin supbrocess startup directory |
Date: |
Mon, 11 Feb 2002 07:56:39 -0800 |
Jonathan,
>From what I can tell, cygwin was in fact reading an old .bashrc in my c:/
directory (which emacs thinks is HOME) instead of the .bashrc in my cygwin
HOME directory (where HOME is set by /etc/profile). I took out the lines
CD'ing to my home directory in c:/.bashrc and the world was fine again.
BASH_ENV is certainly a more elegant solution than maintaining two .bashrc
files. Thanks for pointing it out. I also use miktex, which has worked
very well for me.
I really appreciate the response from you, and from Robin(address@hidden). I'd
been working on this problem for weeks! Thanks for your help.
Cheers,
Steve
-----Original Message-----
From: Underwood, Jonathan
To: 'address@hidden'; Scott, Steven; address@hidden
Sent: 2/11/2002 6:54 AM
Subject: RE: [h-e-w] cygwin supbrocess startup directory
I'm not sure that'll solve the problem, since auctex starts whatever
shell noninteractively. A non-interactive bash shell doesn;'t read
.bashrc or indeed any config files, unless you use the BASH_ENV
environment variable to tell it to (see man bash).
For what it's worth, i use bash all the time through emacs, however, due
to the incomplete nature of the tex/latex distribution currently
included with cygwin, i use the infinitely better and more complete
miktex distribution (www.miktex.org) which works superbly with auctex.
This, being a native windows application runs via the cmd.exe shell, but
switching between shells within an emacs session is relatively trivial
(mail me if you need some elisp for this)
jonathan.
-----Original Message-----
From: address@hidden [mailto:address@hidden
Sent: February 10, 2002 8:53 PM
To: address@hidden; address@hidden
Subject: Re: [h-e-w] cygwin supbrocess startup directory
address@hidden writes:
I use cygwin as the shell subprocess under emacs (i.e. M-x shell
launches
cygwin). My shell subprocesses start in my HOME directory. I need to
make
them start in the current directory of the buffer being edited by emacs.
The main reason is that auctex uses cygwin as a shell to run latex.
Under
the current setup I can only use auctex to latex a file in its home
directory.
How do I control the directory in which the shell sub-process starts
?
Probably your ~/.bashrc has code in it to set the working directory to
$HOME.
Remove that when running under emacs.
if ! test -z $EMACS; then
# We're called from emacs
fi
if test -z $EMACS; then
# We're not called from emacs
fi
are the appropriate tests.
- [h-e-w] cygwin supbrocess startup directory, Scott, Steven, 2002/02/10
- Re: [h-e-w] cygwin supbrocess startup directory, Robinows, 2002/02/10
- RE: [h-e-w] cygwin supbrocess startup directory, Underwood, Jonathan, 2002/02/11
- RE: [h-e-w] cygwin supbrocess startup directory,
Scott, Steven <=
- RE: [h-e-w] cygwin supbrocess startup directory, Richard M. Heiberger, 2002/02/11
- RE: [h-e-w] cygwin supbrocess startup directory, Scott, Steven, 2002/02/11
- Re: [h-e-w] cygwin supbrocess startup directory, Robinows, 2002/02/11