From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) by sourceware.org (Postfix) with ESMTPS id 896AC386C5A5 for ; Wed, 20 Dec 2023 19:44:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 896AC386C5A5 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 896AC386C5A5 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::d2a 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 Received: by mail-io1-xd2a.google.com with SMTP id ca18e2360f4ac-7b7a9f90ee9so909839f.0 for ; Wed, 20 Dec 2023 11:44:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703101485; x=1703706285; 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=ZXDvl+HT2gNXUEUykDlI5bJqYeTdW5AsxZkeFk4SqY4=; b=aoGq4BHMprYRPKfLlu8JLeahfxgSUGg5zdZOJfM3QgTvdbZn3FmjGwUtTAY2ogV2UA PYn6DhZWxArPYlzYZSVRwp1nwPpoTtdX9j8D4ArQxPeCmcI5YUELWH2KAckGzhjPRvbE A67/NxuD2hPTMHnxhOiFXdCAHtSRFr6LSq1zXuz4cFWnXPpfJJ3M+GPEkL2qpdJUxCM6 a43PsPT8pFlV7EBW/uyepUeATX3hXBmvoc9fjJXtKJZe0ePNa1VnWTVCCbR6PQBoNfA2 8Ltnnq5o5VJfNraCJoeCpTHizA1lIh/Hv8FvhZno+D4d6lzv2DQmfREwquuzpfwksoWs qU9g== 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: <7d0e764a-3f03-42c8-a6f3-63355e218f1e@gmail.com> In-Reply-To: From: Lee Date: Wed, 20 Dec 2023 14:44:33 -0500 Message-ID: Subject: Re: vim: errors launching "/usr/bin/vi To: Ken Brown Cc: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 List-Id: On Wed, Dec 20, 2023 at 2:24=E2=80=AFPM Ken Brown via Cygwin wrote: > > On 12/20/2023 1:34 PM, Lee via Cygwin wrote: > > On Wed, Dec 20, 2023 at 9:01=E2=80=AFAM marco atzeri wrote: > >> > >> On Wed, Dec 20, 2023 at 6:04=E2=80=AFAM Marco Atzeri wrote: > >>> > >>> On 20/12/2023 03:47, Beau James via Cygwin wrote: > >>>> This problem appeared with my most recent Cygwin update that include= d an > >>>> update to "vim". > >>> > >>> vi is usually an alias to vim > >>> > >>> $ alias | grep vi > >>> > >>> alias vi=3D'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 > > Compiled by > > 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 > > Compiled by > > 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=3Dvi" 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