delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
In-Reply-To: | <C742AC34C772EC4BAAF642C22E6079D301376F8E885C@NSPEXMBX-A.the-lab.llnl.gov> |
References: | <C742AC34C772EC4BAAF642C22E6079D301376F8E885C AT NSPEXMBX-A DOT the-lab DOT llnl DOT gov> |
Date: | Tue, 30 Nov 2010 06:58:15 +0000 |
Message-ID: | <AANLkTim4fYXaAdE3cGtdcYe-3tegWpvpmzbQs4X6vUcU@mail.gmail.com> |
Subject: | Re: 1.7.7: Open BASH Shell Here goes to wrong location |
From: | Andy Koppe <andy DOT koppe AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
On 29 November 2010 19:11, Roe, Kevin L. wrote: > I have set up a registry entry: > > [HKEY_CLASSES_ROOT\Directory\shell\bashrxvt] > @="&Open BASH Shell Here" > [HKEY_CLASSES_ROOT\Directory\shell\bashrxvt\command] > @="C:\\cygwin\\bin\\mintty.exe -" > [HKEY_CLASSES_ROOT\Drive\shell\bashrxvt] > @="&Open BASH Shell Here" > [HKEY_CLASSES_ROOT\Drive\shell\bashrxvt\command] > @="C:\\cygwin\\bin\\mintty.exe -" > > This creates the BASH Shell here links in Explorer, but there is a problem. > > When I try to use it, it goes to the wrong location. > > When I use it in the directory tree side (left side) it always goes to the /cygdrive/c/Windows/system32 directory > > When I use it in the Directory side (right side) it always goes to one level below what I am selecting. 'mintty -' invokes your shell as a login shell. The default /etc/profile will cd to your home directory, but presumably you've changed that, as that's not what you're seeing. Hence you'll end up in whatever directory Explorer decided to start mintty, so it seems Explorer doesn't necessarily set the current directory to the one you're looking at. Apparently that could be due to a shell extension, according to this: http://blogs.msdn.com/b/oldnewthing/archive/2010/11/09/10087919.aspx > Any ideas? As Matt said: use 'chere'. That's what it's for. Andy -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |