Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: 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> 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: (kurtz's message of "Mon, 20 Sep 2004 15:39:38 +0200") Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, linux) Lines: 39 MIME-Version: 1.0 Content-Type: text/plain; charset=undecided Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Note-from-DJ: This may be spam kurtz 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/