From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) by sourceware.org (Postfix) with ESMTPS id D94173857B92 for ; Mon, 18 Dec 2023 19:42:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D94173857B92 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D94173857B92 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::d36 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 Received: by mail-io1-xd36.google.com with SMTP id ca18e2360f4ac-7b70139d54cso155835739f.1 for ; Mon, 18 Dec 2023 11:42:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702928537; x=1703533337; darn=cygwin.com; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=JwKEY+a8o65yPzkj/3bQlT+5DgBu7oDH/tAqUwUpkgk=; b=Z8DvogZ3Lvi8vSoMuD5C4iQdYJpRSQfe6Rh03Tlh7pMeWjdWG1trGOrKk7vBWu0iOz MX67YzRvhdzC2WqrEESH61pYTENsJ2FSrgXqlQMbCnieQhnogcW3XwIIbtBRCJ7uNdH1 YqbsOcIBJljoJOvLKPYXvQn4Grpx+gESr4rif0Dv5IEl4oilPKhH3iJ9qkZb6md3SF1i 0Gl1GfYhq2iaFwPq9cF13fPZL3Vf/1lHnyesozGdgx7wR3VN/PvIhoiqU6TJXV4muX4Y PueS2CBcJY+OocUOTZni3ggs27USDG5VLEWMCzVW1Q58sIVNrLltbKHPs9WAeKrZYED0 N1iw== 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@sneakemail.com> In-Reply-To: <18692-1702757484-52909@sneakemail.com> From: Lee Date: Mon, 18 Dec 2023 14:42:05 -0500 Message-ID: Subject: Re: /usr/bin/vi: errors parsing .vim files from vim-common package To: John Hein <3fbmqnhaz4@snkmail.com> Cc: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 List-Id: 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=3D'vim' On Sat, Dec 16, 2023 at 3:11=E2=80=AFPM 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 =3D 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=3Dvim fi So I end up with $ alias | grep ' vi' alias vi=3D'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