From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18132 invoked by alias); 7 Sep 2010 13:59:53 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 15370 Received: (qmail 24464 invoked from network); 7 Sep 2010 13:59:51 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.213.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=ECTeurCg4FFEVMHpWlN6Sj/2rgtGtXxzeb94gQK/lcM=; b=XiVvlM452rDu67YJNKsU2R4CaExLG7uUSVJI7ehGh8KfC/qlDZ+CdUXUdM0HqM6Xwe pExHNZVeYbp+ZsBZciaAsKC3drPmW5t3WSw16P/asn/8ehxiku4RK+OAZAbR3EO/flS9 pziK+uX9DYhZFYOI/rQ9nHdPYw4iLYizRuEQU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=w+Nkk+wm+O+iG09qHs4eB+pUBjp8oHsmmSOqpmfdaqA+9RH9mDE6sUKCALmXicmYyt czcAxkE+qbnXgVlSVQYMlK2gqIx2VFelb1tdQVWkdf3LD/2rISDBrCzE+7VCeL8gYm6Y O+AH438L/hCAaAcij9lV09t601Fn1Fh0WofqQ= Message-ID: <4C863E1C.4060907@gmail.com> Date: Tue, 07 Sep 2010 06:29:00 -0700 From: reckoner User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 To: "Benjamin R. Haskell" CC: "Peter A. Castro" , zsh-users@zsh.org Subject: Re: cygwin chere not working with zsh version 4.3.10 but worked for 4.3.9 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Dear Ben: It turns out that commenting out CHERE_INVOKING fixed problem. Evidently, there was no CHERE_INVOKING environment variable. Mysterious. Thanks again! On 9/2/2010 2:14 PM, Benjamin R. Haskell wrote: > On Thu, 2 Sep 2010, Peter A. Castro wrote: > >> On Wed, 1 Sep 2010, Reckoner wrote: >> >>> Hi, >> >> Greetings, Reckoner, >> >>> This command line from cygwin chere is not working anymore for zsh >>> version 4.3.10, but it worked for zsh version 4.3.9: >>> >>> C:\cygwin\bin\run.exe C:\cygwin\bin\rxvt.exe -e /bin/xhere /bin/zsh.exe "%L" >>> >>> This is supposed to open a new zsh at the directory provided by the >>> %L variable. With version 4.3.10, it opens a shell, but leaves you >>> in $HOME instead of %L >> >> Hmm. I don't recall there being anything specific with reguards to >> cd'ing to $HOME on startup in 4.3.10. The sample startup profile, >> /etc/zprofile, (source is at >> /usr/share/doc/zsh-4.3.10/StartupFiles/etc/zprofile) was updated to be >> in sync with /etc/profile from the base-files package, though those >> changes weren't all that effective (spaces, tabs, comments, etc). In >> /etc/zprofile we look for an env var named CHERE_INVOKING and either >> unset it or do "cd $HOME": >> >> # Make sure we start in home unless invoked by CHERE >> if [ ! -z "${CHERE_INVOKING}" ]; then >> unset CHERE_INVOKING >> else >> cd "${HOME}" >> fi >> >> So, clearly, this should be working in tandum with chere. You might >> want to try commenting out the above block and see if it does what you >> want. If so, it may be that chere has changed how "CHERE_INVOKING" is >> being set into the environment or, maybe the name changed, or perhaps >> something related to that. >> >> I'll install chere and see what I can find out. >> >>> any help appreciated. >> > > I installed chere, and it appears to work fine for me. I tried first > with mintty, and then had to install rxvt before testing with it (only > had rxvt-unicode installed). > > I notice that the rxvt command prepends Cygwin's 'run.exe' wrapper, > whereas the mintty version lacks it: > > rxvt: (as you listed): > C:\cygwin\bin\run.exe C:\cygwin\bin\rxvt.exe -e /bin/xhere /bin/zsh.exe "%L" > > mintty: > C:\cygwin\bin\mintty.exe -e /bin/xhere /bin/zsh.exe "%L" > > Maybe try dropping that?: > C:\cygwin\bin\rxvt.exe -e /bin/xhere /bin/zsh.exe "%L" > > (It still works either way for me, but that's just one more variable to > eliminate.) > > === Selected output from cygcheck -s === > > Windows 7 Home Premium Ver 6.1 Build 7600 > Running under WOW64 on AMD64 > Cygwin DLL version: 1.7.5 > DLL epoch: 19 > > package versions: > mintty 0.8.1-1 > run 1.1.12-11 > rxvt 20050409-21 > zsh 4.3.10-1 ($ZSH_VERSION 4.3.10 $ZSH_PATCHLEVEL 1.4705) > > (not sure what else is relevant -- suspect that's enough) >