X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=P+lXtG6WojNZgV2Q qPqG9s0O+XBZ2hv+vGgi53LhhHOFYSdrabh7KdoEqE1/gDZx2k+tCyRiR3kdNvIo vsri4mWm9A9SOf0dhN0lxhCuRdm1O1qNBWn3U7bnBym2oN6h/tCgCxfw/2n1vfsU RFkpVUdaJZtI9I3FK2HW27DFnhg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=default; bh=jNPRsRjPj2NwOiYZZjHJPZ LPqtw=; b=uSLzO0UOQCJxlSFL0hWSnSqCzCV+69eXVRl2N7LL8Q73U389XgxZD0 qVuLnuDf6ZVCrUo1D4E4p85pwMunSwHv6alE4Oe3mVEiKMWcZtz1vkwOlgXK/4Za 6wAYXTj/4JyWSbC/P3zBDTKpxPgBqL8xlseeRliyAT4RnHpizHkdI= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=3.5 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: smtpback.ht-systems.ru Date: Tue, 9 Sep 2014 02:48:57 +0400 From: Andrey Repin Reply-To: cygwin AT cygwin DOT com Message-ID: <1448944831.20140909024857@yandex.ru> To: Gary Johnson , cygwin AT cygwin DOT com Subject: Re: latest cygwin: 'run' problem In-Reply-To: <20140908174606.GA4187@phoenix> References: <5405C013 DOT 7030503 AT verizon DOT net> <87a96hrki4 DOT fsf AT Rainer DOT invalid> <54060378 DOT 2070108 AT gmail DOT com> <5406680D DOT 4030105 AT verizon DOT net> <540761FA DOT 1040902 AT verizon DOT net> <87ppfcqyc7 DOT fsf AT Rainer DOT invalid> <540A600A DOT 6090201 AT verizon DOT net> <540A6817 DOT 9080207 AT verizon DOT net> <20140906201229 DOT GA9220 AT phoenix> <20140908174606 DOT GA4187 AT phoenix> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Greetings, Gary Johnson! > I wrote a batch file and a shell script to implement a Run Bash Here > feature from the Windows file manager "Send to" context menu, much > like chere but without having to mess with the registry. The > hardest part was getting the quoting in the run command line right > so that both cmd and bash were happy. The files are included > in-line below. That's overengineered. > ------------------------ run_bash_here.bat ------------------------- > -------------------------------------------------------------------- Replace it all with this "bash-here.cmd" placed in /bin : @START "" /D "%~1" "%~dp0\mintty.exe" > ------------------------- run_bash_here.sh ------------------------- > -------------------------------------------------------------------- This all is just not needed. Just create a shortcut in "Sent to" to your bash-here.cmd - job done, reap the rewards. -- WBR, Andrey Repin (anrdaemon AT yandex DOT ru) 09.09.2014, <2:39> Sorry for my terrible english... -- 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