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 Mime-Version: 1.0 (Apple Message framework v622) Message-Id: <1b202b8c04f84cffc518fd40037da172@kreisbote.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed To: Cygwin Newsgroup From: Oliver Geisen Subject: How to give commands to execute after (login)shell invoked Date: Fri, 17 Jun 2005 17:50:00 +0200 X-Spam-Report: * -3.3 ALL_TRUSTED Did not pass through any untrusted hosts * -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] * 1.2 AWL AWL: From: address is in the auto white-list X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j5HFo1jQ003321 Hello, there is a neat trick to expand window's context menu (right-click) with commands. I would like to add something like "Open BASH here..." so if i right-click on an Folder in Explorer i can open a bash shell and it's already cd'ed into the path. I know where the registry must be patched but i struggle around with the options to bash. In the reg-key the windows-variable %L is expanded to the path, but where can i include it so bash will do an cd to it after invocation ? i tried: bash.exe -i --login -c "cd %L" but shell will terminate as soon as cd-command is executed :-( Any hints from you, folks ? With best regards, Oliver Geisen --------------------------------------- Systemadministrator Kreisboten Verlag Mühlfellner KG Phone: +49 881/686-63 Fax: +40 881/686-74 Mail: technik AT kreisbote DOT de --------------------------------------- -- 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/