delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/04/05/08:20:40

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=1.8 required=5.0 tests=BAYES_40,FH_HAS_XID,RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY
X-Spam-Check-By: sourceware.org
Message-ID: <4BB9D55D.8050906@t-online.de>
Date: Mon, 05 Apr 2010 14:19:41 +0200
From: Christian Franke <Christian DOT Franke AT t-online DOT de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.8) Gecko/20100205 SeaMonkey/2.0.3
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: gitk won't start after upgrade
References: <g2n7034d58f1004041804sab621488jf122e82a606b6419 AT mail DOT gmail DOT com> <4BB95CE8 DOT 2070405 AT gmail DOT com>
In-Reply-To: <4BB95CE8.2070405@gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Eliot Moss wrote:
> On 4/4/2010 9:04 PM, Remi wrote:
>> Today I've deleted my Cygwin installation, which I've used for a year
>> without problems and installed the new version - I believe it's 1.7.3.
>> Problem?
>> gitk won't start:
>> /usr/bin/gitk: line 10: package: command not found
>> /usr/bin/gitk: line 11: proc: command not found
>> /usr/bin/gitk: line 12: global: command not found
>> ...
>
> I see the same thing. It *claims* to be a shell script
> (starts with #!/bin/sh) but looks to me to be something
> different. Line 10 is the first real line of script code,
> and its first token is *package*, which suggests to me
> that this is really tcl/tk or something, that I am not
> familiar with how to code ...

It is tcl/tk. The command 'exec wish' is missing in the new release:

  $ diff -u gitk.prev gitk | head
  --- gitk.prev   2010-02-06 23:53:48.001000000 +0100
  +++ gitk        2010-04-02 16:37:13.001000000 +0200
  @@ -1,7 +1,6 @@
   #!/bin/sh
   # Tcl ignores the next line -*- tcl -*- \
  -argv0=`cygpath --windows --absolute "$0"`; \
  -exec wish "$argv0" -- "$@"
  +


Workaround: run gitk as:

$ wish /usr/bin/gitk


Christian


--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019