kartal wrote:I am trying to open Cygwin Bash console from XYp and I cannot get to anywhere
Here is the command to run it normally inside Windows
Code: Select all
C:\cygwin\bin\bash -c "/bin/xhere /bin/bash.exe '%L'"
This doesn't work for me at all (no screen, no error message) with a vanilla installation of the current Cygwin on Windows 7 x64.
So I change it to
Code: Select all
C:\cygwin\bin\bash -c "/bin/xhere /bin/bash.exe <curpath>"
and add to "open" commands, but it does not work nothing , no screen or shell opens for me

I'd try it with the XYplorer variable outside the quotes like so:
Code: Select all
C:\cygwin\bin\bash -c "/bin/xhere /bin/bash.exe" <curpath>
I'm guessing that XYplorer treats everything within double quotes literally and thus doesn't recognise its own variable.
Finally, according to XYplorer's help on the "open" scripting command:
Note that the application must be double-quoted when command line parameters are used! If the whole argument is single-quoted, the contained double-quotes don't have to be doubled.
so:
Code: Select all
'"C:\cygwin\bin\bash" -c "/bin/xhere /bin/bash.exe" <curpath>'
I'm not sure how the double quotes in the bash parameter should be encoded given the single quotes around the whole parameter for the "open" function.
Unfortunately, even with the two changes above I couldn't get it to work. I know a little Linux but bash not so much, which doesn't help.
I hope *some* of the above is of use (or indeed at all relevant

).