delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
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 |
X-Authentication-Warning: | erasmus.inf.ed.ac.uk: ht set sender to ht AT inf DOT ed DOT ac DOT uk using -f |
Resent-To: | cygwin AT cygwin DOT com |
Resent-From: | ht AT inf DOT ed DOT ac DOT uk (Henry S. Thompson) |
Resent-Date: | Fri, 24 Sep 2004 16:08:18 +0100 |
Resent-Message-ID: | <f5b4qln7li5 DOT fsf AT erasmus DOT inf DOT ed DOT ac DOT uk> |
X-From-Line: | nobody Fri Sep 24 11:11:03 2004 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: [INFO] Adding "Cygwin here" to Windows Explorer |
References: | <20040914170613 DOT 40672 DOT qmail AT web61307 DOT mail DOT yahoo DOT com> <v189njr02xk3 DOT dlg AT thorstenkampe DOT de> <cimmio$ne$1 AT sea DOT gmane DOT org> |
From: | ht AT inf DOT ed DOT ac DOT uk (Henry S. Thompson) |
Date: | Fri, 24 Sep 2004 11:11:02 +0100 |
In-Reply-To: | <cimmio$ne$1@sea.gmane.org> (kurtz's message of "Mon, 20 Sep 2004 15:39:38 +0200") |
Message-ID: | <f5bwtykaseh.fsf@erasmus.inf.ed.ac.uk> |
User-Agent: | Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, linux) |
Lines: | 39 |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
Note-from-DJ: | This may be spam |
kurtz <ivalladolidt at terra.es> writes: > Thorsten Kampe escribió: > >> [HKEY_CLASSES_ROOT\Folder\shell\command\command] >> @="C:\\cygwin\\bin\\rxvt.exe -e /bin/zsh --login -i -s \"%1\"" >> and... >> if [[ $OSTYPE = cygwin && $ARGC = 1 ]]; then cd $@; fi > > I set bash instead of zsh, and try to use $# instead of $ARGC, in my > .bashrc. There, $# always has the value 0. Any ideas? Right, bash doesn't seem to pass through the -s args to its init scripts. I've hacked this as follows: 1) In the registry entry: C:\cygwin\bin\rxvt.exe -fn 'Lucida Console-11' -geometry 80x48 -sl 300 -cr '#8b4513' -bg '#fffff0' -e /usr/bin/bash -c "XXX=\"%1\" bash --login -i" 2) In my .bash_profile if [[ "x$XXX" != "x" ]] then cd "$XXX" unset XXX fi This is a moderately embarassing/messy hack -- can anyone do better? ht -- Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh Half-time member of W3C Team 2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440 Fax: (44) 131 650-4587, e-mail: ht AT inf DOT ed DOT ac DOT uk URL: http://www.ltg.ed.ac.uk/~ht/ [mail really from me _always_ has this .sig -- mail without it is forged spam] -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |