Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion ruby under cygwin & windows paths
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
David Vallner  
View profile  
 More options Jan 16 2006, 2:32 pm
Newsgroups: comp.lang.ruby
From: "David Vallner" <da...@vallner.net>
Date: Tue, 17 Jan 2006 04:32:09 +0900
Local: Mon, Jan 16 2006 2:32 pm
Subject: Re: ruby under cygwin & windows paths
On Mon, 16 Jan 2006 17:37:03 +0100, Mojca Miklavec  

<mojca.miklavec.li...@gmail.com> wrote:
> On 1/13/06, Thomas <sanobast-20...@yahoo.de> wrote:
>> > Thanks. I didn't think about creating another ruby.bat file. There's a
>> > "cygpath" utility in cygwin, but I didn't figure out yet how to use it
>> > to call another program an to tell him which paths to use.

>> I think you can run ruby using something like

>> bash -c "ruby '$(cygpath -u %1)' %2 %3 %4 %5 %6 %7 %8 %9"

>> Maybe you could put this into some kind of ruby.bat. I don't know if
>> cmd.exe provided this kind of substitution which would make things  
>> easier.

> Thanks again for all the proposals, but the part with "$(cygpath -u
> %1)" doesn't work:
> ruby: No such file or derectory -- $(cygpath -u ) (Load Error)

> No luck this time.

> (The problem on the "bash" side, not on the "command-line" side I  
> suppose.)

> Mojca

The $() seems to try and execute the path... A slip of the mind? My first  
guess would be using backticks instead of the '$()', but that has issues  
with the backslashes being processed in the path I give it when trying  
out, and I smell rocky waters ahead. And by rocky, I mean some  
sed-massaging of %1 (it doesn't get much rockier), and I'll honestly admit  
my sed knowledge is very bad.

Did you check out that hint from that guy that posted on google groups  
that didn't get replicated to the list? It just might end up a lot less  
painful.

David Vallner


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.