I am using Cygwin on Windows 10 and ran the below commands so I could Double Click and execute bash/shell scripts in file explorer without happening to run them by opening Cygwin itself:
assoc .sh=bashscript
ftype bashscript=C:\cygwin64\bin\bash.exe --login -i -c 'cd "$(dirname "$(cygpath -u "%1")")"; bash "$(cygpath -u "%1")"'
The issue I am having is whatever command I run which creates a folder or file, it adds a weird ·
symbol to the end of files.
For example, if I have a bash script that simply has the command:
mkdir bob
It will create a directory called: bob ·
Any ideas as to how or why this is happening? If I run these commands manually in the Cygwin terminal everything works fine.