• Login
Community
  • Login

Windows 10 Subsystem: bash.exe not found.

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
3 Posts 2 Posters 3.0k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H
    Halley Souza
    last edited by May 16, 2018, 4:30 PM

    Hi,

    I’ve installed the Ubuntu Bash on Windows 10 and it’s works just fine.
    Not I’m trying to run my scripts directly from Notepadd++ using:

    C:\Windows\System32\bash.exe -c “~/.local/bin/ansible-playbook -k /mnt/c/playbook/$(FILE_NAME)”

    I’m able to run this command from prompt without any problems, but when I try to Run from Notepadd++ it says it can’t find the file “bash.exe”.

    Does anyone already tried to do something similar ?

    Any ideas ?

    Thanks

    1 Reply Last reply Reply Quote 0
    • P
      PeterJones
      last edited by May 16, 2018, 5:07 PM

      My idea is that you’re using 32b NPP in 64b windows, so you’re getting the system32 vs syswow64 windows-lies-to-you (excuse me, File System Redirector ).

      If you are in 32b NPP (? > Debug Info will say Notepad++ v7.5.6 (32-bit)), then try running c:\windows\sysnative\bash.exe ... instead.

      If that’s not it, please supply the Debug Info, along with other information that might be relevant to help us debug your problem.

      1 Reply Last reply Reply Quote 4
      • H
        Halley Souza
        last edited by May 16, 2018, 5:17 PM

        Hi Peter,

        Indeed I was running 32bit.I just updated it to 64bit and NPP now find the bash.exe on the dir %WINDIR%\System32 with no problem.

        Thank you for the help.

        Halley

        1 Reply Last reply Reply Quote 1
        2 out of 3
        • First post
          2/3
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors