X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 07A623861032 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1703103079; bh=ZINQTuXOkGQgzQtfiSOb7Xxd/y0845KdXXMi1c3/RF4=; h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=V50y881CXeZuGwT3IyFCTvD8qH6qbK8iTl5S8+muxTAROZDHZWTMSw8HTFToCnvmt xJ90RFmEw9HRdc6MAnal+UX11tpXeyfL2GcexIrc5M73pRAt+OBtnk/R3KDUCPBOwB 1SO2dR4iptLiN8HJl8UhJtfu9tRt3+kuTtMMHYas= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 00D3F3858CD1 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 00D3F3858CD1 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 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 AT gmail DOT com> <13058478 DOT 2154617 DOT 1703098667904 AT mail DOT yahoo DOT com> In-Reply-To: Date: Wed, 20 Dec 2023 15:10:48 -0500 Message-ID: Subject: Re: vim: errors launching "/usr/bin/vi To: gs-cygwin DOT com AT gluelogic DOT com 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 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Lee via Cygwin Reply-To: Lee Cc: "cygwin AT cygwin DOT com" Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 3BKKBJ5a030116 On Wed, Dec 20, 2023 at 2:45 PM 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=vim' > > 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 (see > # ':help starting', 'vi' is not capable of '-d'). The introducing an environment > # variable, which an user must set to get the feature, will do the same trick > # 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=vi > # > # in bashrc file. > > if test -f /usr/bin/vim > then > exec /usr/bin/vim "$@" > fi > > # run vi otherwise > exec /usr/libexec/vi "$@" -- 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