X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 94CD93857007 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1677936923; bh=lpDz6yWK8yK8LPaL2oDethBiRl6EmNMdZT6osq6m1z0=; h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=bN9pudng+qkkXFE1KFXWmN3Gzy6jtvrJWtfevhUcymfjj1ZmNolZTyNF98KMs5J3i UX9EZJpN8zKHFvaM3jz4vsPBUFTPZT/ABtnQyRa7zKi3IQ9P2uvvASHMiiLzPZW99D Y6b4wXbYcaU3MtMHGqvE6EwsKbOB5TUT1wZSCJ1w= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3636B3858D1E X-Yandex-Fwd: 1 Date: Sat, 4 Mar 2023 16:21:28 +0300 X-Mailer: The Bat! (v9.3.4) Professional Message-ID: <1135047136.20230304162128@yandex.ru> To: Kirill Frolov , cygwin AT cygwin DOT com Subject: Re: Nano fails to open file "~/.bashrc". In-Reply-To: References: <0de2dd08-f532-0c21-3685-5fc7e86ef8ee AT gmail DOT com> <165153627 DOT 20230303154721 AT yandex DOT ru> <9abd4f0c-3c51-1626-59d7-f6b65891c99d AT gmail DOT com> <1901530338 DOT 20230303183108 AT yandex DOT ru> MIME-Version: 1.0 X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_THEBAT, NICE_REPLY_A, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no 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.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Andrey Repin via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Andrey Repin Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Greetings, Kirill Frolov! > $ which nano > /cygdrive/c/Program Files/Git/usr/bin/nano That explains it. Cygwin does not install nano by default. Fire up your setup.exe and install it, that will fix your issue. As for the future, I suggest to patch your ~/.profile and exclude unnecessary/conflicting directories from $PATH. Something along the lines of PATH="$(tr ":" "\\n" <<<"$PATH" | grep -v /Windows/ | tr "\\n" ":")" export PATH -- With best regards, Andrey Repin Saturday, March 4, 2023 16:14:34 Sorry for my terrible english... -- 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