Re: Nano fails to open file "~/.bashrc".

2023-03-04 Thread Andrey Repin via 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/conflicti

Re: Nano fails to open file "~/.bashrc".

2023-03-03 Thread Eliot Moss via Cygwin
On 3/3/2023 10:37 AM, Kirill Frolov via Cygwin wrote: On 03.03.2023 18:31, Andrey Repin wrote: Greetings, Kirill Frolov! Please avoid top-posting in this list. On 03.03.2023 15:47, Andrey Repin wrote: Greetings, Kirill Frolov! When i run nano ~/.bashrc nano opens with   [ Directory '/home

Re: Nano fails to open file "~/.bashrc".

2023-03-03 Thread Kirill Frolov via Cygwin
On 03.03.2023 18:31, Andrey Repin wrote: Greetings, Kirill Frolov! Please avoid top-posting in this list. On 03.03.2023 15:47, Andrey Repin wrote: Greetings, Kirill Frolov! When i run nano ~/.bashrc nano opens with   [ Directory '/home/frolo' does not exist ] error. Do you run it from ba

Re: Nano fails to open file "~/.bashrc".

2023-03-03 Thread Andrey Repin via Cygwin
Greetings, Kirill Frolov! Please avoid top-posting in this list. > On 03.03.2023 15:47, Andrey Repin wrote: >> Greetings, Kirill Frolov! >> >>> When i run nano ~/.bashrc nano opens with   [ Directory '/home/frolo' does >>> not exist ] error. >> Do you run it from bash prompt or from CMD prompt?

Re: Nano fails to open file "~/.bashrc".

2023-03-03 Thread Kirill Frolov via Cygwin
I run it with F:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico - $ getent passwd "$USER"; mount; cat /etc/nsswitch.conf frolo:*:197609:197121:U-DESKTOP-P57624Q\frolo,S-1-5-21-3636099827-1216969241-2011884586-1001:/home/frolo:/bin/bash F:/cygwin64/bin on /usr/bin type ntfs (binary,auto) F:/cygwi

Re: Nano fails to open file "~/.bashrc".

2023-03-03 Thread Andrey Repin via Cygwin
Greetings, Kirill Frolov! > When i run nano ~/.bashrc nano opens with   [ Directory '/home/frolo' does > not exist ] error. Do you run it from bash prompt or from CMD prompt? > The file opens with cat ~/.bashrc Can you please show us the output of getent passwd "$USER"; mount; cat /etc/nsswit

Nano fails to open file "~/.bashrc".

2023-03-03 Thread Kirill Frolov via Cygwin
When i run nano ~/.bashrc nano opens with   [ Directory '/home/frolo' does not exist ] error. The file opens with cat ~/.bashrc Cygwin Configuration Diagnostics Current System Time: Fri Mar 03 12:33:37 2023 Windows 11 Professional Ver 10.0 Build 22621 Path: F:\cygwin64\usr\local\bin