This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Converting Dos Slashes to Unix Slashes
On Sun, 14 Mar 2004, zzapper wrote:
> From
> man cygpath
>
> Look at this generically useful script
>
> #!/bin/sh
> # wexp
> # description : Launch Explorer with correct "Windows" path
> if [ "${1}" = "" ];
> then
> XPATH=".";
> else
> XPATH="$(cygpath -w "${1}")";
> fi
> explorer $XPATH &
>
> zzapper (vim & cygwin & zsh)
Umm, why not simply use the script below? BTW, you don't need to put
explorer in the background - detaches from the tty itself. Also, don't
forget that there *are* command-line arguments for explorer, which you
might want to pass through...
Igor
#!/bin/sh
# wexp
# description : Launch Explorer with correct "Windows" path
explorer "$(cygpath -w "${1:-.}")"
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster." -- Patrick Naughton
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/