X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_PD,TW_RX,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Message-ID: <4E691CFD.50201@gmail.com> Date: Thu, 08 Sep 2011 20:52:29 +0100 From: Dave Kilroy User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.1) Gecko/20110830 Thunderbird/6.0.1 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: chere on Win2008 Server - strange behavior References: In-Reply-To: Content-Type: multipart/mixed; boundary="------------070900050505050709000805" 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 --------------070900050505050709000805 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 08/09/2011 15:51, Jim Garrison wrote: > I ran chere as follows: > > chere -i -t mintty -s bash -a -n -e"bash Shell Here" -o "-s140,50" > > However, the Windows Explorer context menu reads: > > cygwin_bash > > not "bash Shell Here", and when clicking on it I get an error dialog: > > [directory in which I clicked context menu] > This file does not have a program associated with it for performing this action. > Create an association in the Set Associations control panel. > > I have updated all Cygwin packages to the latest available. > Output of chere -r (bash keys only, all others empty): > > $ chere -r > OS is CYGWIN_NT-6.0-WOW64 Hi Jim, This has come up a couple of times: (continued) Basically there's a 32 bit registry and a 64 bit one. chere uses the 32 bit one. This works on 64 bit Windows 7, but not some others. I thought I'd done a release fixing this. You can try the attached patch, which should make chere play with the appropriate registry. Dave. --------------070900050505050709000805 Content-Type: text/plain; name="chere.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="chere.patch" --- chere.prev 2009-01-29 22:15:52.001000000 +0000 +++ chere 2011-09-08 20:39:21.436409000 +0100 @@ -816,8 +816,9 @@ ######################################################################### # Need to use eval to force correct quote evaluation -REGTOOL="eval regtool" -REGTOOL_=regtool +REGTOOL_="regtool -w" +REGTOOL="eval $REGTOOL_" + KNOWN_TERMS="cmd rxvt mintty xterm" KNOWN_SHELLS="ash bash cmd pdksh posh tcsh zsh passwd" @@ -854,7 +855,7 @@ c ) ALL_USERS=f;; n ) DO_WIN_UINST=t;; m ) DO_WIN_UINST=f;; - p ) REGTOOL="echo regtool"; PRINT=t;; + p ) REGTOOL="echo $REGTOOL_"; PRINT=t;; f ) FORCE=t;; 1 ) METHOD=1;; 2 ) METHOD=2;; --------------070900050505050709000805 Content-Type: text/plain; charset=us-ascii -- 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 --------------070900050505050709000805--