www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/05/31/13:36:48

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 54VHam5k1811941
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 54VHam5k1811941
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=EdLDDjhA
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4ECF13858D26
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1748713006;
bh=z0tfmRwO3rxlpnNIDRPqaj7wZB+Xdw8q0JjYnrVwouE=;
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=EdLDDjhAdYUPlZ7itzmpgMg4piw25SSPlpDPRZ0uatWrhFK42l+yQxT9sdJN0JI8V
OZTKZS91J1fKtpQbLUqjkTpQbwljwqTD4TsShCwUm52R3FMXEms4LcBkSz88ntiiJ6
apDr5e8nLb6aoegJFyvitiYk0sMP/gyWZMvCJyiE=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4DCF53858D20
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4DCF53858D20
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1748712981; cv=none;
b=VQ8pu7fbc7dk4Mlm+WPl42B4lX5MwdC/tZL5ltGaFBPrxx+wMLqHZQQkcQsfuc0YCRPS7jypp6qWuvK8frPM+tzcZToaPdMJ3Uvf7XJTPqRp0uesiyvYnrQNm4LT/qRVOJhW3jsBtFvN+LzeAlnUr5Nng3PNKYZHTSml845GXIA=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1748712981; c=relaxed/simple;
bh=3lU+5b6wlDHr2bNZT3l6/a57ds9V08LQlfXj/WLWfLM=;
h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
b=S8LC71+hgIDdytyoqv7xuTVeaQTKmlhllBA6cMbCuT0mgt1dt//6YvkJdncjV8FLrM6A2x262XjombHWxrriDn9+rcRDSD3AsI7/IvtKLrDh0ex7m1cnWCPWQKIkn5q9wr8Dpr3kWsyJhEA/MqSzq2PG7OnySgbFPFrU29QYUHk=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4DCF53858D20
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1748712980; x=1749317780;
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=94W0nNjBtVqDEQRvayB638DR4ba+I0tRDneJEHUtuek=;
b=jKWlWqzy6jzJ5chylCDog2GtTDHjodMApXgSNaeVZ+Ad0Df8zkE1zKu6BgKovRVAbk
p0R7LAD5JN/SZe6FiHlsr4hFP8UWfZZo51zK1gonSm2mK5a/yI88Q0MOlUv/vtpKzvhJ
w/k5DfWsvaz4oz++ANfr+9x6OxxxiCFUtR/cfiK0y3Q6JmXbVAGzWrR6G2YgCJQvevS6
sxtCirRBauueiwXg/TvuMCl9qC0AuBoF+UuwT49y9NlNv9ZlYTsI+0do+e7Lc71WI7B8
LpRVHTbmKK5eHwMeyJLBsbx/XFvuwMiByDOksdgnC4CrycWGEJmz6eMjhuReS2lQ7rOp
/t2w==
X-Gm-Message-State: AOJu0YxaHfUo32lBFwAetpaiZMSlt/ulv1dY/8II6clziRNZm9zYIWJN
EKIq50oka8APbmJlarBoAT867MCdqZA34u+DxNIzlAo3mo2bkaAShDlNTGRWkmSS4/6pKQn8uES
Z5+HXeHHXwBzzkScgw2NZzGVIQhDw/pQ=
X-Gm-Gg: ASbGncv1OICgqNPKA2ZjEKqtqGv/PPETzLWPP8Zz5p6/03gybzxJZ8wA25nB3XaGa7x
/weW39vshTil3yD89ZKn560WXgdGi38zfs/7acTTIgpj18FsaatXG4VY1zCj48HdSHIGLryLG+X
l4VmxgX1XYwtvqWSm5aVuE/cMWfa+0aBFAYdvnP9ZqqbOiQdtX/ZNCpJnt6Z0vr5Cedied8fLAJ
sNt
X-Google-Smtp-Source: AGHT+IEaxq8t9eyMbYgCvpDtlaUr2nEDH+L14LEs2ASbkRV+MfNDKqdXiyBXYx+036rGyURw//TA1Z4R+9x948i5+y8=
X-Received: by 2002:a05:6820:205:b0:60b:9d5b:e94b with SMTP id
006d021491bc7-60db9e4d407mr1379590eaf.4.1748712980524; Sat, 31 May 2025
10:36:20 -0700 (PDT)
MIME-Version: 1.0
References: <1748705805-010323ad4e08a94be8d815d16e7ca644__andkin773 AT fanclub DOT pm>
In-Reply-To: <1748705805-010323ad4e08a94be8d815d16e7ca644__andkin773@fanclub.pm>
Date: Sat, 31 May 2025 13:36:09 -0400
X-Gm-Features: AX0GCFtFOOXbwQy0Kxx1m93i0XSs0W49Tkvw8nJ7qiNwrrhjl5NuflrXQnT9Qlk
Message-ID: <CAD8GWstkr0K2-XZCq3zj7qn4AAp41QDScszhtEnhd9-UEbfRQg@mail.gmail.com>
Subject: Re: Cygwin package vim breaks the command 'view'
To: andkin773 AT fanclub DOT pm
Cc: cygwin AT cygwin DOT com
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 54VHam5k1811941

On Sat, May 31, 2025 at 11:37 AM andkin773--- via Cygwin
<cygwin AT cygwin DOT com> wrote:
>
> Hi,
>
> I think I found a problem in the Cygwin package vim.
> The same symptom has been reported earlier to both vim and Cygwin, but I think the problem has not yet been found.
> https://sourceware.org/pipermail/cygwin/2025-January/257202.html
> https://github.com/vim/vim/issues/17039

I think I ran into the same problem - my work-around was to make
vi.exe point to vim.exe

lrwxrwxrwx 1 root None 7 Apr  3 10:30 /usr/bin/vi -> vim.exe
-rwxr-xr-x 1 root Administrators 3656723 Jan 27 13:58 /usr/bin/vim
lrwxrwxrwx 1 root Administrators 6 Feb 19 00:09 /usr/bin/view -> vi.exe
lrwxrwxrwx 1 root Administrators 6 Feb 19 00:09 /usr/bin/ex -> vi.exe
lrwxrwxrwx 1 root Administrators 6 Feb 19 00:09 /usr/bin/rvi -> vi.exe
lrwxrwxrwx 1 root Administrators 6 Feb 19 00:09 /usr/bin/rview -> vi.exe

I don't remember what I was doing that caused the issue... something
with git?  In any case, I had an alias for vi pointing to vim and the
alias was ignored(???) or something and it was really annoying having
all those error messages coming out every time.

for what it's worth:
$ cygcheck -c | grep vim
vim                                     9.1.1054-1                    OK
vim-common                              9.1.1054-1                    OK
vim-doc                                 9.1.1054-1                    OK
vim-minimal                             9.1.1054-1                    OK

Regards,
Lee


> REPRODUCTION:
> 1. Install Cygwin and add package vim. I have:
>   $ cygcheck -c | grep vim
>   vim                  9.1.1054-1                   OK
>   vim-common           9.1.1054-1                   OK
>   vim-doc              9.1.1054-1                   OK
>   vim-minimal          9.1.1054-1                   OK
>
> 2. Run 'view'. this gives many errors:
>   $ view
>   Error detected while processing /usr/share/vim/vim91/filetype.vim:
>   line   11:
>   E319: Sorry, the command is not available in this version: let did_load_filetypes = 1
>   line   14:
>   E319: Sorry, the command is not available in this version: let s:cpo_save = &cpo
>   line   48:
>   E319: Sorry, the command is not available in this version: func s:StarSetf(ft)
> etc.
>
>
> PROBLEM:
> Package vim-minimal installs 'tiny' vim and some symlinks:
>   usr/bin/ex -> vi.exe
>   usr/bin/rvi -> vi.exe
>   usr/bin/rview -> vi.exe
>   usr/bin/vi.exe
>   usr/bin/view -> vi.exe
>
> Package vim and vim-common install 'huge' vim and filetype.vim:
>   /usr/share/vim/vim91/filetype.vim
> Tiny vim will attempt to read this file, but it has no builtin support for it.
>
> Perhaps an ideal solution would make tiny vim start without errors, but I don't see how that is feasible.
> I don't want to uninstall vim-minimal because it is a default package for Cygwin.
> Also, I think it would not solve the problem, it would just remove the commands ex, rvi, rview, view.
>
>
> Package 'vim' hides tiny 'vi' with with an alias to run vim instead:
>   $ cat /etc/profile.d/vim.sh
>   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
>
> However, there are no aliases for ex, rvi, rview, view.
> These commands will still run tiny vim and report errors about filetype.vim.
>   $ view --version | grep " Features included"
>   Tiny version without GUI.  Features included (+) or not (-):
>
>
> PROPOSED SOLUTION:
> Package vim should provide aliases for ex, rvi, rview, view in /etc/profile.d/vim.sh:
>   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
>
>     alias ex    >/dev/null 2>&1 || alias ex=vim -e
>     alias rvi   >/dev/null 2>&1 || alias rvi=vim -Z
>     alias rview >/dev/null 2>&1 || alias rview=vim -RZ
>     alias view  >/dev/null 2>&1 || alias view=vim -R
>   fi
>
> (See :help vim-arguments)
> Also update and vim.csh and vim.fish.
>
>
> WORKAROUND:
> I temporarily added these aliase to my .bashrc.
>
>
> Regards,
> Coen
>
>
> --
> 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

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