1
  • My OS is win10 X64, and I have installed Bash on Ubuntu on Windows.
  • My IDE is Pycharm2017, and I have installed bash-plugins like BashSupport, Shell Process.

My test file helloworld.sh has codes like this:

#!/usr/bin/env bash
echo "Hello, World!"

When I run this script in Pycharm, the result like this:

C:\WINDOWS\system32\bash.exe E:/MyCodes/shell/hello-sh/hello.sh /bin/bash: E:/MyCodes/shell/hello-sh/hello.sh: No such file or directory

enter image description here

Does it possible to run bash scripts in IDE like Pycharm? And how?

Cyrus
  • 84,225
  • 14
  • 89
  • 153
Allis Gao
  • 91
  • 1
  • 6

1 Answers1

0

When you run under WSL, Windows files are mounted on /mnt.
You need to change E:/ to /mnt/e/

rhmccullough
  • 105
  • 2