External tools on Windows 10 using bash

Oxygen general issues.
dwood2
Posts: 1
Joined: Tue Mar 07, 2017 10:31 pm

External tools on Windows 10 using bash

Post by dwood2 »

Hello everyone,

I'm currently using oXygen 18.1 on windows 10. I've installed the "Bash on Ubuntu on Windows" tool and I'm trying to make an external tool which runs bash scripts using this tool.

This is currently what I have for the external tool's command:
bash -c "sh ${cf}"
The working directory is ".", all of the other settings are default.

When I try to use this external tool on a bash script, I get the error code : 0x80070057.
However, the command works fine when run manually through the windows command prompt.

Thanks.
adrian
Posts: 2850
Joined: Tue May 17, 2005 4:01 pm

Re: External tools on Windows 10 using bash

Post by adrian »

Hi,

The "External tools" is not the same as a command prompt, you always have to specify an executable, as opposed to a command.
There may also be a problem with the PATH environment variable and that's why the bash executable is not found.
Try using /path/to/bash -c "sh ${cf}"

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply