Building in Linux Susbsystem in Windows 10

When trying to build Legato app (using leaf and mksys) in Linux Subsystem of Windows (ubuntu 16) got error:
/bin/sh: 15: export: Files/WindowsApps/CanonicalGroupLimited.Ubuntu16.04onWindows_1604.2019.523.0_x64__79rhkp1fndgsc:/mnt/d/Python27/:/mnt/d/Python27/Scripts:/mnt/c/Perl64/site/bin:/mnt/c/Perl64/bin:/mnt/c/Program: bad variable name

this is probably due to space in ‘Program Files’ folder. and to fix it somebody should add “…” but where in build scripts?

ok, solved. problem was that $PATH variable imported from host Windows with spaces. To make it working you to overwrite $PATH