[Geany-Users] Windows 10, running ubuntu bash commands as a build option

Lex Trotman elextr at xxxxx
Sat Aug 13 22:34:08 UTC 2016

On 14 August 2016 at 06:58, Matthew Brush <mbrush at codebrainz.ca> wrote:
> On 2016-08-13 01:27 PM, bill punch wrote:
>>  You probably know that you can now run a bash command line from Windows
>> 10, and even more interestingly you can download all the ubuntu tools
>> (14.04) such as g++.
>> You can also run these commands from a regular windows cmd.exe if you do
>> the following:
>> bash -c "g++ --version" for example, gives the version number.
>> However, if I do the same as a build option (say, the compile option) I
>> get "Process failed(The system cannot find the file specified)". Even if
>> I use the absolute path, the Compiler line says

Is it bash it can't find or is it g++ ?  The message in () may be the
system message for the code returned from bash.  Try running a bash
builtin instead of g++ or try the full path to g++.

I don't know which startup files bash on windows reads, but is your
path defined in the right one?

>> C:\Windows\System32\bash.exe -c "g++ --version" (in directory:
>> C:\Users\bill)
>> with the same error message. PATH does have bash in it, it all works
>> fine in cmd, just not here as an option.
>> Any ideas?
>> For those that want to ask why the question, I'm trying to help students
>> in a large C++ class. Some use windows.
> What version of Geany?
> You might try single or no quotes instead of double quotes around the bash
> -c argument.
> Cheers,
> Matthew Brush
> _______________________________________________
> Users mailing list
> Users at lists.geany.org
> https://lists.geany.org/cgi-bin/mailman/listinfo/users

More information about the Users mailing list