From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from forward501c.mail.yandex.net (forward501c.mail.yandex.net [IPv6:2a02:6b8:c03:500:1:45:d181:d501]) by sourceware.org (Postfix) with ESMTPS id 3636B3858D1E for ; Sat, 4 Mar 2023 13:35:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3636B3858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=yandex.ru Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=yandex.ru Received: from sas1-d879273d667a.qloud-c.yandex.net (sas1-d879273d667a.qloud-c.yandex.net [IPv6:2a02:6b8:c14:3a29:0:640:d879:273d]) by forward501c.mail.yandex.net (Yandex) with ESMTP id CE03F5EA69; Sat, 4 Mar 2023 16:35:02 +0300 (MSK) Received: by sas1-d879273d667a.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id 2ZYC3jIe60U1-GkANeY2g; Sat, 04 Mar 2023 16:35:02 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1677936902; bh=hZCnI0llAxZfFn6H6asqpw8hEp1CoShzfpK4WRwKRcU=; h=In-Reply-To:Subject:Date:References:To:Message-ID:Reply-To:From; b=p8fS5yx4ctJaNKLdDq9wpuiVhfvQfw0q383VXKfCg4+N2b2+7yQFmI+PISkeNu9cu cOQCn6O/3vJF29JKQXOLaBHoSGfo0nDTyeNBN27LE/gHGNF8UrLcGa33TiwrORDHN6 EdxFFayoZ1rQYfm5en8/BvO/hx9xCMATjEsUVcag= Authentication-Results: sas1-d879273d667a.qloud-c.yandex.net; dkim=pass header.i=@yandex.ru Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Sat, 04 Mar 2023 13:21:28 -0000 Date: Sat, 4 Mar 2023 16:21:28 +0300 From: Andrey Repin X-Mailer: The Bat! (v9.3.4) Professional Reply-To: cygwin@cygwin.com Message-ID: <1135047136.20230304162128@yandex.ru> To: Kirill Frolov , cygwin@cygwin.com Subject: Re: Nano fails to open file "~/.bashrc". In-Reply-To: References: <0de2dd08-f532-0c21-3685-5fc7e86ef8ee@gmail.com> <165153627.20230303154721@yandex.ru> <9abd4f0c-3c51-1626-59d7-f6b65891c99d@gmail.com> <1901530338.20230303183108@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 List-Id: 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...