delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/12/06/17:36:43

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:mime-version:date:message-id:subject:from:to
:content-type; q=dns; s=default; b=i/d7dyn4ARlSNlRRAWqUO7iRCr2/W
eC6SsZrl4/I5kxMWaZEPniOLbdMFlcC6ZxNTUWlVfnDypIUiVxY0OkBVopz8RYtS
UxY+NYnLAgNUfWBqc8SHYF/Bj7ot2ZTGt78Ssyfuz4ir1iLotyQsfTPyCAeliLMj
3+kNvkS/9f/bSM=
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:mime-version:date:message-id:subject:from:to
:content-type; s=default; bh=fRTp9Dlnl+xGgBQa1OazrG18Hdw=; b=r/S
0lErMlvaQgZ9jTfqqyNPWiauuApwzSMd5v9gsd++G8LowbS+d56fWvOPE8x8vFOJ
YQ+7GtFLJJrZsYUAZaHjuz3WZGLC75oLyXGn/Q7qHYRLc9Y/DvhlJMAQcZMW+cSc
+XdjFE6W9a6ZlpPhu1sbakK+j/GiXIzgkoym7yDE=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=2.8 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-ob0-f169.google.com
MIME-Version: 1.0
X-Received: by 10.182.112.130 with SMTP id iq2mr4259998obb.57.1386369378636; Fri, 06 Dec 2013 14:36:18 -0800 (PST)
Date: Fri, 6 Dec 2013 17:36:18 -0500
Message-ID: <CAP_kE8Vnp+hLDqWSaA+WxwyDm4dZ4STf5-Upmsx4zehzW-rNXA@mail.gmail.com>
Subject: vim not working as an editor for git
From: Adrian Hawryluk <adrian DOT hawryluk AT gmail DOT com>
To: cygwin AT cygwin DOT com

Doing a simple command like

  git config -e

just hangs the terminal.  I can break out or suspend the process, but
in both cases it, the git that I though I was executing is terminated
and the git underneath remains, leaving a sh process executing a vim
process.  I.e. what the process tree looks like:

  bash   -- my current shell
  \_ bash  -- ?? executed when executing git command
   \_ git   -- the git that I thought I invoked
    \_ git   -- ?? git invoked another git
     \_ sh    -- git invoking sh to invoke vim
      \_ vim   -- finally, the actual vim process

after I do a Ctrl-C or Ctrl-Z I get:

  bash   -- my current shell
  git    -- ?? git invoked another git
   \_ sh  -- git invoking sh to invoke vim
    \_ vim -- finally, the actual vim process

Switching the editor to nano I get:

  bash   -- my current shell
  \_ bash  -- ?? executed when executing git command
   \_ git   -- the git that I thought I invoked
    \_ git   -- ?? git invoked another git
     \_ nano  -- git invoked nano directly

If I were to suspend the editor, they say:

  Use "fg" to return to nano
  Received SIGHUP or SIGTERM
  error: There was a problem with the editor 'nano -z'.

Can someone confirm that this is a bug?

If I use gvim as my editor, it executes gvim and returns right away,
not waiting for gvim to terminate.  This appears to be another bug.

Thanks,


A

-- 
========================================
            Adrian Hawryluk
         BSc. Computer Science
----------------------------------------
           Specialising in:
        OOD Methodologies in UML
  OOP Methodologies in C, C++ and more
        RT Embedded Programming
            GUI Development
========================================

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