delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/12/18/14:42:34

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7344B3857BAF
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1702928553;
bh=LONHngw4Tr9EzWp7mjS+oKc+Aayh2dk2F1yClPfwWgc=;
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=QVJXLwnYYt0QrQM4gyC3tcenGoEfrcfxf8S5mmAqLkzeLCxvnMCWKrezE4kZTGXTH
BmwH0JU/dvsh8ztVQVZgV1xSjXWtedx/PqUd7W95A0L3638RYIvPYkh9uAJ0cjJA3/
fQN5SFwPj6J99REPGQgK+5yDg5uMyHajyecbGO1I=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D94173857B92
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D94173857B92
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702928539; cv=none;
b=CCi938YFrBoQcduWHZUQFmDXne4dYU6Ya37TEWKT5URQVsQJDxxll4sCpSF9HQib362EJWO0LpqtpAeGdPUZOoTgPQcvm3ENPOPBsbG8G/ZNzdW6NyPDp0k2wJAvsGCCUMLTLwcldGisSvUTb0MfTInlTBaOypvwG69r661iQlc=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1702928539; c=relaxed/simple;
bh=e/AXuyzqpjMeUxMwqg92zr95cxpxyJ9de/MqLKJ2Zeg=;
h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
b=eLqYSw6cxHdHcW3R1rPs5Y1wjfBt0yivzxSfDd6Mau+0RY0VH0u/KH7ifAIKUKStsaGyVhetCcPZkGT0FzJAiwnOCJJx6C014qQE3YPlxYBq9TbRVUxVxHfI0NzkLb8FrhQWzH0S2sSs4bMHttXccOh7QUbOyYpP1wvhNrYfbno=
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=1702928537; x=1703533337;
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=JwKEY+a8o65yPzkj/3bQlT+5DgBu7oDH/tAqUwUpkgk=;
b=UT7d1C4n5vqSq6e2e9l1PhApv6wVgbswT2hTa1p+a+uQiDoeAj6lqMR5jU3sTxb/WG
3by3E0rrYjGkuD9uIv4oP1Bl2ANMIgrXJQCqxVfSN1B8GQQOSheWJGkcPNeFkGQtoPxD
dAlGtDTfYc7IuD+14nVjJaNZxCi+gkMI6ru5DzcYqHpHvHiOxGU6lbQ98pTcu9+PImfd
YwlqqlVv65PyNfbm31eZxotJ24Iw1MCRTTdq4qmEQcyITtrmH9M40pWIYdauJrWJtBIq
9cafWyxuxVCegGQ2tqNbzkPamJPWPG6bYSV7YacO02VeNHglf+og+rO9KWmNWg9rmWkZ
o0dw==
X-Gm-Message-State: AOJu0Ywm278Z9anPMuY90lNF8fiKRm3ggivKiq/2tKGx5/rvsU1ZSfJF
gZGkDXbl2i3kKEMpNtzSFBWoM2Y7YpbzsQZTolRSz+90k1VetA==
X-Google-Smtp-Source: AGHT+IH6OzqZHsEAcdeW0pVt4JlZ60WqkyW5fgSw/RCkWlOapbea6Rj1xYU/9ZVWn1B3KVHxENkHyzVjPMzYwku5RNo=
X-Received: by 2002:a05:6602:2c53:b0:7b7:3d:6452 with SMTP id
x19-20020a0566022c5300b007b7003d6452mr21194847iov.5.1702928536972; Mon, 18
Dec 2023 11:42:16 -0800 (PST)
MIME-Version: 1.0
References: <18692-1702757484-52909 AT sneakemail DOT com>
In-Reply-To: <18692-1702757484-52909@sneakemail.com>
Date: Mon, 18 Dec 2023 14:42:05 -0500
Message-ID: <CAD8GWss_X23NjnDn1w5eGs3Lg0qed_k7b2croi0EsHmQ0UOfdg@mail.gmail.com>
Subject: Re: /usr/bin/vi: errors parsing .vim files from vim-common package
To: John Hein <3fbmqnhaz4 AT snkmail DOT com>
Cc: cygwin AT cygwin DOT com
X-Spam-Status: No, score=-0.5 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 3BIJgY23023740

tl,dr:  Did vi/vim change from /etc/alternatives to an alias?

$ ls -l $(which vi) $(which vim)
-rwxr-xr-x 1 root Administrators 1507859 Dec 12 09:07 /usr/bin/vi.exe
-rwxr-xr-x 1 root Administrators 3565587 Dec 12 09:07 /usr/bin/vim.exe

$ alias vi
alias vi='vim'


On Sat, Dec 16, 2023 at 3:11 PM John Hein wrote:
>
> I just updated vim packages (including vim-minimal and vim-common) to 9.0.2155-1

I've got the same version installed
$ grep '^vi' cygcheck-srv_2023-12-17.txt
vim                                     9.0.2155-1                    OK
vim-common                              9.0.2155-1                    OK
vim-minimal                             9.0.2155-1                    OK

> Now when I run 'vi', I get this:
>
> Error detected while processing /usr/share/vim/vim90/filetype.vim:
> line   11:
  <.. snip ..>
> and so on.

I can duplicate the problem by

cd /tmp
touch f1 f2
vi f1
:sh
vi f2

 ... and I get the same thing:
Error detected while processing /usr/share/vim/vim90/filetype.vim:
line   11:
E319: Sorry, the command is not available in this version: let
did_load_filetypes = 1
line   14:
  ... etc.


Tracking down bash startup processing is not my thing, so I could be wrong but

/etc/profile has this bit:
    for file in /etc/profile.d/*.$1; do
      [ -e "${file}" ] && . "${file}"
    done

and /etc/profile.d/vim.sh has this bit:
if [ -n "$BASH_VERSION" -o -n "$KSH_VERSION" -o -n "$ZSH_VERSION" ]; then
  # for bash and zsh, only if no alias is already set
  alias vi >/dev/null 2>&1 || alias vi=vim
fi

So I end up with
$ alias | grep ' vi'
alias vi='vim'

and vi works in the shell but gives all those errors in a sub shell - eg
vi /tmp/f1
  -------- no error messages
bash
vi /tmp/f1
  -------- lots of error messages

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