Nano fails to open file "~/.bashrc".
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 F:\cygwin64\bin C:\Program Files (x86)\Common Files\Oracle\Java\javapath C:\Program Files (x86)\VMware\VMware Workstation\bin C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0\bin C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0\libnvvp C:\Windows\system32 C:\Windows C:\Windows\System32\Wbem C:\Windows\System32\WindowsPowerShell\v1.0 C:\Windows\System32\OpenSSH C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common C:\Program Files\NVIDIA Corporation\Nsight Compute 2022.4.0 E:\Program Files\WinMerge E:\Program Files (x86)\FAHClient F:\Strawberry\c\bin F:\Strawberry\perl\site\bin F:\Strawberry\perl\bin C:\Users\frolo\loda\bin C:\Users\frolo\.loda-rust C:\ProgramData\chocolatey\bin E:\new folder\sysinternalssuite\Contig.exe E:\Program Files\FAHClient E:\new folder\sysinternalssuite E:\apacheant\bin C:\Program Files\Git\cmd C:\Program Files\Git\mingw64\bin C:\Program Files\Git\usr\bin C:\Program Files\dotnet E:\Windows Kits\10\Windows Performance Toolkit C:\Users\frolo\scoop\shims F:\Ruby31-x64\bin C:\Users\frolo\.cargo\bin C:\Users\frolo\AppData\Local\Microsoft\WindowsApps C:\tools\msys64 C:\Users\frolo\.dotnet\tools C:\Users\frolo\.dotnet\tools Output from F:\cygwin64\bin\id.exe UID: 197609(frolo) GID: 197609(frolo) 197609(frolo) 405504(Вы�окий об�зательный уровень) 114(Локальна� учетна� запи�ь и член группы "�дмини�траторы") 544(�дмини�траторы) 578(�дмини�траторы Hyper-V) 583(Владельцы у�трой�тва) 545(Пользователи) 559(Пользователи журналов производительно�ти) 4(И�ТЕР�КТИВ�ЫЕ) 66049(КО�СОЛЬ�ЫЙ ВХОД) 11(Прошедшие проверку) 15(Данна� организаци�) 68597(microsoftaccount+frolov_kir...@mail.ru) 113(Локальна� учетна� запи�ь) 4095(CurrentSession) 66048(ЛОК�ЛЬ�ЫЕ) 262180(Проверка подлинно�ти учетной запи�и в облаке) SysDir: C:\Windows\system32 WinDir: C:\Windows USER = 'frolo' PWD = '/home/frolo/git' HOME = '/home/frolo' USERDOMAIN = 'DESKTOP-P57624Q' ChocolateyToolsLocation = 'C:\tools' OS = 'Windows_NT' COMMONPROGRAMFILES = 'C:\Program Files\Common Files' PROCESSOR_LEVEL = '23' PSModulePath = '%ProgramFiles%\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules' CommonProgramW6432 = 'C:\Program Files\Common Files' CommonProgramFiles(x86) = 'C:\Program Files (x86)\Common Files' TZ = 'Europe/Moscow' VBOX_HWVIRTEX_IGNORE_SVM_IN_USE = '1' HOSTNAME = 'DESKTOP-P57624Q' PUBLIC = 'C:\Users\Public' OLDPWD = '/home/frolo' CUDA_PATH = 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0' UD_DISABLE_USAGE_TRACKING = '1' C64FOREVERROOT = 'E:\Program Files (x86)\Cloanto\C64 Forever\' USERNAME = 'frolo' ChocolateyInstall = 'C:\ProgramData\chocolatey' JAVA_HOME = 'C:\Program Files\Java\jdk1.8.0_361' LOGONSERVER = '\\DESKTOP-P57624Q' PROCESSOR_ARCHITECTURE = 'AMD64' LOCALAPPDATA = 'C:\Users\frolo\AppData\Local' COMPUTERNAME = 'DESKTOP-P57624Q' FPS_BROWSER_APP_PROFILE_STRING = 'Internet Explorer' !:: = '::\' SYSTEMDRIVE = 'C:' USERPROFILE = 'C:\Users\frolo' PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.RB;.RBW' SYSTEMROOT = 'C:\Windows' USERDOMAIN_ROAMINGPROFILE = 'DESKTOP-P57624Q' PROCESSOR_IDENTIFIER = 'AMD64 Family 23 Model 113 Stepping 0, AuthenticAMD' OneDriveConsumer = 'C:\Users\frolo\OneDrive' TMP = '/tmp' LC_CTYPE = 'ru_RU.UTF-8' TERM_PROGRAM = 'mintty' TERM_PROGRAM_VERSION = '3.6.3' !F: = 'F:\' RETROPLATFORMDATA = 'C:\ProgramData\Cloanto\RetroPlatform\' OneDrive = 'C:\Users\frolo\OneDrive' PROCESSOR_REVISION = '7100' FPS_BROWSER_USER_PROFILE_STRING = 'Default' PROFILEREAD = 'true' NUMBER_OF_PROCESSORS = '8' ProgramW6432 = 'C:\Program Files' COMSPEC = 'C:\Windows\system32\cmd.exe' APPDATA = 'C:\Users\frolo\AppData\Roaming' SHELL = '/bin/bash' TERM = 'xterm' WINDIR = 'C:\Windows' ProgramData = 'C:\ProgramData' SHLVL = '1' MINTTY_SHORTCUT = '/cygdrive/c/ProgramData/Microsoft/Windows/Start Menu/Programs/Cygwin/Cygwin64 Terminal.lnk' PRINTER = 'PDF-XChange 5.0 for ABBYY FineReader 15' PROGRAMFILES = 'C:\Program Files' CUDA_PATH_V12_0 = 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0' ALLUSERSPROFILE = 'C:\ProgramData' TEM
Re: Nano fails to open file "~/.bashrc".
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/nsswitch.conf -- With best regards, Andrey Repin Friday, March 3, 2023 15:45: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
Re: Nano fails to open file "~/.bashrc".
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:/cygwin64/lib on /usr/lib type ntfs (binary,auto) F:/cygwin64 on / type ntfs (binary,auto) C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto) D: on /cygdrive/d type ntfs (binary,posix=0,user,noumount,auto) E: on /cygdrive/e type ntfs (binary,posix=0,user,noumount,auto) F: on /cygdrive/f type ntfs (binary,posix=0,user,noumount,auto) # /etc/nsswitch.conf # # This file is read once by the first process in a Cygwin process tree. # To pick up changes, restart all Cygwin processes. For a description # see https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nsswitch # # Defaults: # passwd: files db # group: files db # db_enum: cache builtin # db_home: /home/%U # db_shell: /bin/bash # db_gecos: 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? The file opens with cat ~/.bashrc Can you please show us the output of getent passwd "$USER"; mount; cat /etc/nsswitch.conf -- 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
Re: Nano fails to open file "~/.bashrc".
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? >> >>> The file opens with cat ~/.bashrc >> Can you please show us the output of >> >> getent passwd "$USER"; mount; cat /etc/nsswitch.conf >> > I run it with F:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico - Thanks. TBH, I'm baffled. Your setup looks like standard unaltered one. Diagnostics seems clear, but the last bit remains. What the `which nano` says? > $ 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:/cygwin64/lib on /usr/lib type ntfs (binary,auto) > F:/cygwin64 on / type ntfs (binary,auto) > C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto) > D: on /cygdrive/d type ntfs (binary,posix=0,user,noumount,auto) > E: on /cygdrive/e type ntfs (binary,posix=0,user,noumount,auto) > F: on /cygdrive/f type ntfs (binary,posix=0,user,noumount,auto) > # /etc/nsswitch.conf > # > # This file is read once by the first process in a Cygwin process tree. > # To pick up changes, restart all Cygwin processes. For a description > # see https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nsswitch > # > # Defaults: > # passwd: files db > # group: files db > # db_enum: cache builtin > # db_home: /home/%U > # db_shell: /bin/bash > # db_gecos: -- With best regards, Andrey Repin Friday, March 3, 2023 18:26:32 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
Re: Nano fails to open file "~/.bashrc".
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 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/nsswitch.conf I run it with F:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico - Thanks. TBH, I'm baffled. Your setup looks like standard unaltered one. Diagnostics seems clear, but the last bit remains. What the `which nano` says? $ 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:/cygwin64/lib on /usr/lib type ntfs (binary,auto) F:/cygwin64 on / type ntfs (binary,auto) C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto) D: on /cygdrive/d type ntfs (binary,posix=0,user,noumount,auto) E: on /cygdrive/e type ntfs (binary,posix=0,user,noumount,auto) F: on /cygdrive/f type ntfs (binary,posix=0,user,noumount,auto) # /etc/nsswitch.conf # # This file is read once by the first process in a Cygwin process tree. # To pick up changes, restart all Cygwin processes. For a description # see https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nsswitch # # Defaults: # passwd: files db # group: files db # db_enum: cache builtin # db_home: /home/%U # db_shell: /bin/bash # db_gecos: $ which nano /cygdrive/c/Program Files/Git/usr/bin/nano -- 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
Re: Nano fails to open file "~/.bashrc".
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/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/nsswitch.conf I run it with F:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico - Thanks. TBH, I'm baffled. Your setup looks like standard unaltered one. Diagnostics seems clear, but the last bit remains. What the `which nano` says? $ 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:/cygwin64/lib on /usr/lib type ntfs (binary,auto) F:/cygwin64 on / type ntfs (binary,auto) C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto) D: on /cygdrive/d type ntfs (binary,posix=0,user,noumount,auto) E: on /cygdrive/e type ntfs (binary,posix=0,user,noumount,auto) F: on /cygdrive/f type ntfs (binary,posix=0,user,noumount,auto) # /etc/nsswitch.conf # # This file is read once by the first process in a Cygwin process tree. # To pick up changes, restart all Cygwin processes. For a description # see https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nsswitch # # Defaults: # passwd: files db # group: files db # db_enum: cache builtin # db_home: /home/%U # db_shell: /bin/bash # db_gecos: $ which nano /cygdrive/c/Program Files/Git/usr/bin/nano I'll jump in: That does not appear to be Cygwin nano, but some other, Windows-based nano, which would expect Windows type paths, not Cygwin type paths. You have (at least) two options: - Drop that nano and install the Cygwin one; - Invoke that nano with a Windows path, perhaps like this: nano $(cygpath -wa ~/.bashrc) Personally, I'd go with the first option, since CYgwin nano is more likely to play nicely with Cygwin files ... Best wishes - Eliot Moss -- 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