Community
    • Login

    Windows 10 Subsystem: bash.exe not found.

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 3.4k Views 2 Watching
    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.
    • Halley SouzaH Offline
      Halley Souza
      last edited by

      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
      • PeterJonesP Offline
        PeterJones
        last edited by

        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
        • Halley SouzaH Offline
          Halley Souza
          last edited by

          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

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors