3
1
I recently installed last version of Cygwin. Right now I'm just configuring some alias and functions to use. Cygwin is reading the .bashrc
file correctly, because some alias are working, I just have a problem with this function:
sublime () {
cygstart "c:/Program Files (x86)/Sublime Text 2/sublime_text.exe" "`cygpath -w $1`"
}
What I'm trying to achieve is that Cygwin let me do something like this:
tom@tom-pc ~
$ sublime myfile.ext
Instead of this:
tom@tom-pc ~
$ cygstart "c:/Program Files (x86)/Sublime Text 2/sublime_text.exe" myfile.ext
How can I solve this problem? I have tried to use single quotes and escape the path string and nothing... Also don't know which programming language is used to execute this functions, so I can't fix this.
don't forget to quote
$1
too:cygstart ... "$(cygpath -w "$1")"
– glenn jackman – 2012-11-27T00:07:40.040yes, I had that issue before ;) – Tomás Ramírez – 2012-11-27T05:51:51.353