daniel-sc / bash-shell-to-bat-converter

Converter for bash shell scripts to windows batch files.
https://daniel-sc.github.io/bash-shell-to-bat-converter
MIT License
229 stars 45 forks source link

Shell to activate virtual environment | parse error: SyntaxError: Unclosed " #43

Open KJAcementys opened 2 years ago

KJAcementys commented 2 years ago

Hi,

I'm trying to convert the following shell script that activates a virtual environment and it doesn't seem to work, but the corresponding error doesn't make sense to me with this script.

Any help on this one?

Here's the file activate.txt

daniel-sc commented 2 years ago

It seems the brackets (KJA) in the following line cause some problem:

VIRTUAL_ENV=$(cygpath "C:\Users\Kieran Janin (KJA)\OneDrive - cementys.com\Documents\Python Scripts\Tests\Ted Petrou, Data Science with Python\Dashboarding with Dash\Build+an+Interactive+Data+Analytics+Dashboard+with+Python+20211101\project\dashboard_venv")

I'll look into this - in the meantime you could simplify the path.

(Admittingly the conversion for the remaining script is rather limited until we support conversion of if-statements #44)