delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/12/20/14:45:53

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CD8FC386EC13
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1703101551;
bh=Jwr4dZeJjNOXx7NUYzvh662PY8mesPe5A2T0l2kBp2U=;
h=References:In-Reply-To:Date:Subject:To:Cc:List-Id:
List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
From:Reply-To:From;
b=WdhkUWejPx4iwCrp3MXr9DtQYS0J+1mFAkXdBBqUDyzK+Y8Alouv4JMNo2GBh5q5Q
AeQa7niHbRBTGZta5vbsJDIsSMhkZKMm86aZqycreIXyDccKDDMnW6YMoYW09BS8XI
IqWYjs495vPM/rI5Jmjpogpqa8HSo4u+Yg4ECvCw=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 896AC386C5A5
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 896AC386C5A5
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703101487; cv=none;
b=Jp+u5GEut5YBdb48tpZ8TTp//vyozyjAcUYpnOP3hTEUJZlpwbFewIVwKjhfZMgT32EF0tH7bR8S/cZyhYB/jxBTqRUExwExzTvVltizMNOqvaDWkfSZ2dr8rhQNAuJlqFqJE+a9QqNAabXjjXSUrE+rFLidtakt1e1l9WHGjqM=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1703101487; c=relaxed/simple;
bh=ZfzpBz+nfhYYOXG4ZEzxx9+V143VzrI897cJ35MX+ys=;
h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
b=ZrgJ0qMkP1ov0VxuUX1JxXhM4gwSDPYG48SfH5+Je1yT7WrxzX262rNcVBpLhuSCEnRbfT4MB9ih8vRWQNhH27/4mUDoOQeL/0f3RItnMCf/CAYC4o77yQclVaaN27ON3qUZWcxmX1JTZP6sWNajkfwbDJXvkD5bs2lp8wJErnc=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1703101485; x=1703706285;
h=content-transfer-encoding:cc:to:subject:message-id:date:from
:in-reply-to:references:mime-version:x-gm-message-state:from:to:cc
:subject:date:message-id:reply-to;
bh=ZXDvl+HT2gNXUEUykDlI5bJqYeTdW5AsxZkeFk4SqY4=;
b=RdhaMDsSVgU6EsRVMtIjjZvR1nOZTog6nbs191aWvOA5Zn62L9hdD2uz+1/pE4Zh/t
ITrOmr6mkK3tzMR8GSn2V5Yyk1C6Usawzr/X0Q08D29QenkVLTBdetfL58UpG0HfdhSL
CQRz0Fq+woa2CzO5cs0TVuXLSTYlr083SYhlxq3lGJWjBKbukseZr/MyuJkKXv7zBiDY
Z/cRNcpOjBILlbmRZ/zzZYh81f+QUqU2Hkh3CYLWqmljM/zX4y/LG1mqudDaBO1txdZQ
XEdnrvn4B0SAMu27wtYNp+ToZA3wCbMpQYDAVwfQdAt+V3ky0RCg4NUt/iNOQrA2yQ30
nAPQ==
X-Gm-Message-State: AOJu0YxCbCMEIcTpOvCLhWOiheCxlfhAei2fKqxM6A81GRmrRAdyTa0P
nMmpGCcjQLtP4oUACMgeLhNBpcSLI6Nap93Cts2rjpkNgcj9eA==
X-Google-Smtp-Source: AGHT+IHLmYosotVaJ4wM5KjPbmcTvadJ+r7Ayngg8Osc4NVXQqvE0wzxwe6ddIDI8sScCMhDJk83ByOJ+/DwWFwjVvg=
X-Received: by 2002:a05:6e02:1aaa:b0:35f:b3d8:4568 with SMTP id
l10-20020a056e021aaa00b0035fb3d84568mr6365170ilv.20.1703101485686; Wed, 20
Dec 2023 11:44:45 -0800 (PST)
MIME-Version: 1.0
References: <da2e8ab5-f0ad-425f-a64d-fbda732fdf0c DOT ref AT pacbell DOT net>
<da2e8ab5-f0ad-425f-a64d-fbda732fdf0c AT pacbell DOT net>
<7d0e764a-3f03-42c8-a6f3-63355e218f1e AT gmail DOT com>
<CAB8Xom-XO0bgH4D49fbMFTpbcTVm0M4BmcUd4V5jhWghvvT6OQ AT mail DOT gmail DOT com>
<CAD8GWsv6DiwdVA_ODiK5GYkQoDqfWEyxCOoJvCmmboNJwN_5hA AT mail DOT gmail DOT com>
<e238b979-0722-48e5-bd8f-32608cd8b734 AT cornell DOT edu>
In-Reply-To: <e238b979-0722-48e5-bd8f-32608cd8b734@cornell.edu>
Date: Wed, 20 Dec 2023 14:44:33 -0500
Message-ID: <CAD8GWsveCnpmroy3fjkTd_qigOgcBgfEr-=0_7cZAqZ1QBJ9nQ@mail.gmail.com>
Subject: Re: vim: errors launching "/usr/bin/vi
To: Ken Brown <kbrown AT cornell DOT edu>
Cc: cygwin AT cygwin DOT com
X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT,
FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Lee via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Lee <ler762 AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 3BKJjqFu025045

On Wed, Dec 20, 2023 at 2:24 PM Ken Brown via Cygwin <cygwin AT cygwin DOT com> wrote:
>
> On 12/20/2023 1:34 PM, Lee via Cygwin wrote:
> > On Wed, Dec 20, 2023 at 9:01 AM marco atzeri  wrote:
> >>
> >> On Wed, Dec 20, 2023 at 6:04 AM Marco Atzeri wrote:
> >>>
> >>> On 20/12/2023 03:47, Beau James via Cygwin wrote:
> >>>> This problem appeared with my most recent Cygwin update that included an
> >>>> update to "vim".
> >>>
> >>> vi is usually an alias to vim
> >>>
> >>> $ alias | grep vi
> >>>
> >>>    alias vi='vim'
> >>>
> >>> so you are in reality calling vim
> >>>
> >>> $ which vim
> >>> /usr/bin/vim
> >>>
> >>>
> >>> I am investigating the /usr/bin/vi issue
> >>>
> >>
> >> -2 version should have solved the issue
> >
> > I don't get any error or warning messages now but 'vi' still doesn't
> > always get me the same thing:
> >
> > $ vi --version | head -5
> > VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Dec 20 2023 06:57:02)
> > Included patches: 1-2155
> > Modified by <cygwin AT cygwin DOT com>
> > Compiled by <cygwin AT cygwin DOT com>
> > Huge version without GUI.  Features included (+) or not (-):
> >
> > $ /bin/sh
> >
> > $ vi --version | head -5
> > VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Dec 20 2023 06:53:22)
> > Included patches: 1-2155
> > Modified by <cygwin AT cygwin DOT com>
> > Compiled by <cygwin AT cygwin DOT com>
> > Tiny version without GUI.  Features included (+) or not (-):
>
> Your second shell is not a login shell.  Could that be the problem?

You need to define "problem" first :)

I want "vi" to always call "vim" .. hrmm.. unless I've explicitly done
something to explicitly over-ride that.

So anytime I type in 'vi' and don't get the VIM Huge version without
GUI I'd say that's a problem.

I've got "export EDITOR=vi" in my .bash_profile, so anytime $EDITOR is
called I want the huge version of vim.
If that doesn't happen I'd say that is a problem.

If I'm in a bash sheel & do /bin/sh I expect typing in 'vi' will get
me the same results as when I was in bash
Same deal with dash -- I still want my expected version of vim to run

So ... a very long way of saying No, I don't think the second shell
not being a login shell is 'the problem.'
My experience is that Debian always does the right thing wrt vi/vim.
Cygwin does not.  It'd be interesting to know if redhat linux uses
alternatives or an alias to decide which vi/vim gets called.

Regards,
Lee

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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