Been using unix cygwin for a time and added many tools recently, command line and scripting are much more familiar. Scripting and programming is my number one goal and 100k dollar question? I am not weened from windows yet though.
The post here -> solved a users dilemma! did a lot to make using / switching paths and directories easier. Better than opening notepad++ and doing it! Specifically this command
# cd "$(cygpath -u 'c:\Program Files\')"
by ben. works on the fly in bash for me so as to allow building scripts efficiently.
Can someone for programming sake break it down piecemeal?
I noticed there's 2 commands and - quotes and the parenthesis are 'separating' the $ , which I assume is a variable place holder???
I always end up thinking it is shell built in doing it, the easy answer, but still need to find out. And the double quotes outside are for what, while inner singe quotes are for space and literal interpretations by shell.
Exactly what is the shell doing start- to finish? Running a debug could be option I believe, how do I do that to show outputs? Thanks for the response.
Last, I did not mention what I used to try to convert paths. Saw stuff for sed strings but never worked due to complexity, this is much simpler.
Update- i think I am getting closer. The last output you see is after adding the line ending charachters >>>> ; <<<< backslash semicolon
– Sircutz Sep 15 '16 at 18:34