From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) by sourceware.org (Postfix) with ESMTPS id 00D3F3858CD1 for ; Wed, 20 Dec 2023 20:11:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 00D3F3858CD1 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 00D3F3858CD1 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::d33 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703103062; cv=none; b=To5ZLh6xVREUHB+bcjpHGDIPn9POu1+CLd3V7ErR+GD7B1oHWykDw9+RSELFOZHaVPIaWBdPxFNL6X752B5NXRANihBftjd8RAA9oB7NsQ73mPo5ROcUxtxBeyI551Ei4fvgxxZO0jwnQBX1SIjP+0gm/0mLARYpF4jnBLK+OtQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703103062; c=relaxed/simple; bh=LkywaDPviQoKqRX8LXaZ0/jIBrNBMC9udWAsM30l/BQ=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=BoflIqJzfRLJx1HFS2YG0573T92J7TqgErddNkWMxQQ9HMmpAEUEn61SLRAzYkTiO/ZYhBH61zsT5EhZyMfyr8lDH80gpmWFyQGIJfvaAsweUidZ+yayRnDRWs24agQ5KL+60KC+sS2MlP3wvXx30Fk3c0E/LB7vz2sKkXRAgBM= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-io1-xd33.google.com with SMTP id ca18e2360f4ac-7ba848d34c1so928339f.3 for ; Wed, 20 Dec 2023 12:11:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703103060; x=1703707860; 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=Gsn1Fqn3/NgxPDKTpmJk+SsTDq3rEW20dAxDHGRAmJ0=; b=WQNd5Oskaai63oSZZQy8EdSEqGWY89Ng4J5YmsWry+VOK1Y9RLN8T1BrZ5V5eRIRPG 2CQFWy/2nlnQCln/yJl7QHRz3DtFdtpi/G+xeJwh8LD4swKe8qcSvloCDtWZI/v76Ddy 2RZOw3Kc+NbyHl5kbpZs3Dh+Ewuk91pe2LctbwDmJ9POqVhTm0Zl0cQL4m1r614t7Ds/ FTQcwNjYoHCIleWWtfP5uz2fwa3ToQTwj8GXtFD2MBFD4NXegJKaXgO9t1Wcmj7Ta5VN bNaTQBhfzXr22DSZfqZQ9E25bu/VsFZSA9fcjn9dKBwbixE4SV59/DyLFbrGiVne9FRe T1HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703103060; x=1703707860; 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=Gsn1Fqn3/NgxPDKTpmJk+SsTDq3rEW20dAxDHGRAmJ0=; b=onpK2k9o/Rm/ORxkzAz6UPf4aaYIk1IryqxeCYlyrHVDB1aUljY8EkAz8Au9Agwzy7 Lw715ujeoct+fFDv5UuNrpDe2QTInBja8/h2O9TwIgGgbkX+tf+ZCVX+lMQiAQKqfgN8 CgfwZ3Yj9lpUG+Ni9jPNoT+388ufC70Qo+/4Domj5LpJ6BCp0p5Accv+spkqBiQZI/z1 Z++HEXQvpjgkleiLN69/jONRaejdW7JWjNMiaZxyAynWuhdIuAxGwdQHqw4yO6j/YSuB efLEZRnZjKzwWLEvwS081DB+0hlNkOZqwUjhqAJ6/dUFoXaDUGsktz49wdqCmBIBFuxf LKow== X-Gm-Message-State: AOJu0Yw63kldzTbPrSHvOIcwt9yYixuBzBTfm59QQFZEouU4/rdCLm1t F+iGEshre8wGbo2GXrvJe8p5M98EbdZRK0CPuws= X-Google-Smtp-Source: AGHT+IFDvr8wLn4HfapWQI/mqx8vmkIEv45NQeUE5Gbm/9NhcGJzNaRjfJhlA+QUsqPFHPRytmWYlO4NkLlasSZGOKE= X-Received: by 2002:a5e:c007:0:b0:7af:fff7:c3f8 with SMTP id u7-20020a5ec007000000b007affff7c3f8mr21860833iol.15.1703103060251; Wed, 20 Dec 2023 12:11:00 -0800 (PST) MIME-Version: 1.0 References: <7d0e764a-3f03-42c8-a6f3-63355e218f1e@gmail.com> <13058478.2154617.1703098667904@mail.yahoo.com> In-Reply-To: From: Lee Date: Wed, 20 Dec 2023 15:10:48 -0500 Message-ID: Subject: Re: vim: errors launching "/usr/bin/vi To: gs-cygwin.com@gluelogic.com Cc: matthew patton , "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:45=E2=80=AFPM gs-cygwin wrote: > > On Wed, Dec 20, 2023 at 02:23:49PM -0500, Lee via Cygwin wrote: > > If anyone has access to a redhat linux system, do they 'alias vi=3Dvim' > > or put vi under /etc/alternatives? > > FYI: neither. Wow! I would have never guessed 'wrapper script' Thank you! Lee > > $ cat /etc/fedora-release > Fedora release 39 (Thirty Nine) > > $ cat /usr/bin/vi > #!/usr/bin/sh > > # run vim if: > # - 'vi' command is used and 'vim' binary is available > # - 'vim' command is used > # NOTE: Set up a local alias if you want vim -> vi functionality. We will= not > # do it globally, because it messes up with available startup options (se= e > # ':help starting', 'vi' is not capable of '-d'). The introducing an envi= ronment > # variable, which an user must set to get the feature, will do the same t= rick > # as setting an alias (needs user input, does not work with sudo), so it = is left > # on user whether he decides to use an alias: > # > # alias vim=3Dvi > # > # in bashrc file. > > if test -f /usr/bin/vim > then > exec /usr/bin/vim "$@" > fi > > # run vi otherwise > exec /usr/libexec/vi "$@"