1. re: Medit Bug

Actually, it wasn't that hard to find...

You need to replace this line:
	exe &= " " & path & name (Line 1993, in Editor.exw)
with this:
	exe &= " \"" & path & name & "\""

So that the system will see this when you run a file:
ex.exe "c:\euphoria\dir with spaces\test file.exw"

It will also allow you to run files that actually have a space in the name, 
not just in the path.

hehe, hope that helps.
=====================================================
.______<-------------------\__
/ _____<--------------------__|===
||_    <-------------------/
\__| Mr Trick

new topic     » topic index » view message » categorize

2. Re: re: Medit Bug

I use the stand-alone version. I noticed this a while ago, but just 
resorted to naming my files with no spaces. :)



----- Original Message -----
From: mistertrik at hotmail.com
Subject: re: Medit Bug

> 
> You need to replace this line:
> 	exe &= " " & path & name (Line 1993, in Editor.exw)
> with this:
> 	exe &= " \"" & path & name & "\""
> 
> So that the system will see this when you run a file:
> ex.exe "c:\euphoria\dir with spaces\test file.exw"
> 
> It will also allow you to run files that actually have a space in 
> the name, 
> not just in the path.
> 
> hehe, hope that helps.
> =====================================================
> .______<-------------------\__
> / _____<--------------------__|===
> ||_    <-------------------/
> \__| Mr Trick
> 
> 
> 
> TOPICA - Start your own email discussion group. FREE!
> 
>

new topic     » goto parent     » topic index » view message » categorize

3. Re: re: Medit Bug

>From: Greg Haberek <g.haberek at comcast.net>
>resorted to naming my files with no spaces. :)

Hehe... yeah, so did I...

Thing is, the problem is not due to long filenames, but just to how DOS (an=
d=20
bash, for that matter) handle arguments to a program.

A space is always taken as a separator between arguments, so if you do this=
:=20
./myprog c:\My Documents\myfile.txt

Then myprog sees two arguments:
"c:\My" and "Documents\myfile.txt"

However, you can put quotes around any text with spaces in it, and the shel=
l=20
will interpret it as a single argument. That's all the change did.

P.S. When associating files with programs in windows, eg associating .exw=
=20
files with exw.exe, the action taken upon 'Open' is best written like this:=

c:\euphoria\bin\exw.exe "%1"
The system automatically replaces %1 with your file name, so the inverted=
=20
commas surrounding it ensure that the file name is correctly passed to the=
=20
interpreter as a single argument.
My 0.03
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D
.______<-------------------\__
/ _____<--------------------__|=3D=3D=3D
||_    <-------------------/
\__| Mr Trick





>From: Greg Haberek <g.haberek at comcast.net>
>Reply-To: EUforum at topica.com
>To: EUforum <EUforum at topica.com>
>Subject: Re: re: Medit Bug
>Date: Sun, 20 Apr 2003 02:42:12 -0400
>
>resorted to naming my files with no spaces. :)
>
>
>----- Original Message -----
>From: mistertrik at hotmail.com
>Date: Sunday, April 20, 2003 1:15 am
>Subject: re: Medit Bug
>
> >
> > You need to replace this line:
> > 	exe &=3D " " & path & name (Line 1993, in Editor.exw)
> > with this:
> > 	exe &=3D " \"" & path & name & "\""
> >
> > So that the system will see this when you run a file:
> > ex.exe "c:\euphoria\dir with spaces\test file.exw"
> >
> > It will also allow you to run files that actually have a space in
> > the name,
> > not just in the path.
> >
> > hehe, hope that helps.
> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D
> > .______<-------------------\__
> > / _____<--------------------__|=3D=3D=3D
> > ||_    <-------------------/
> > \__| Mr Trick
> >
> >
> > TOPICA - Start your own email discussion group. FREE!
> >
> >
>
>
>TOPICA - Start your own email discussion group. FREE!
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>
>

new topic     » goto parent     » topic index » view message » categorize

4. Re: re: Medit Bug

hmm, methinks Topica has some issues
hmm, methinks Topica has some issues
hmm, methinks Topica has some issues

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D
.______<-------------------\__
/ _____<--------------------__|=3D=3D=3D
||_    <-------------------/
\__| Mr Trick





>From: mistertrik at hotmail.com
>Reply-To: EUforum at topica.com
>To: EUforum <EUforum at topica.com>
>Subject: Re: re: Medit Bug
>Date: Mon, 21 Apr 2003 01:02:30 +1000
>
> >resorted to naming my files with no spaces. :)
>
>
>Hehe... yeah, so did I...
>
>Thing is, the problem is not due to long filenames, but just to how DOS=
=20
>(an=3D
>d=3D20
>bash, for that matter) handle arguments to a program.
>
>A space is always taken as a separator between arguments, so if you do=20
>this=3D
>:=3D20
>./myprog c:\My Documents\myfile.txt
>
>Then myprog sees two arguments:
>"c:\My" and "Documents\myfile.txt"
>
>However, you can put quotes around any text with spaces in it, and the=20
>shel=3D
>l=3D20
>will interpret it as a single argument. That's all the change did.
>
>P.S. When associating files with programs in windows, eg associating .exw=
=3D
>=3D20
>files with exw.exe, the action taken upon 'Open' is best written like=20
>this:=3D
>
>c:\euphoria\bin\exw.exe "%1"
>The system automatically replaces %1 with your file name, so the inverted=
=3D
>=3D20
>commas surrounding it ensure that the file name is correctly passed to the=
=3D
>=3D20
>interpreter as a single argument.
>My 0.03
>=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3=
D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D
>=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3=
D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D
>=3D3D=3D3D=3D3D=3D3D=3D3D
>.______<-------------------\__
>/ _____<--------------------__|=3D3D=3D3D=3D3D
>||_    <-------------------/
>\__| Mr Trick
>
>
> >From: Greg Haberek <g.haberek at comcast.net>
> >Reply-To: EUforum at topica.com
> >To: EUforum <EUforum at topica.com>
> >Subject: Re: re: Medit Bug
> >Date: Sun, 20 Apr 2003 02:42:12 -0400
> >
> >resorted to naming my files with no spaces. :)
> >
> >
> >----- Original Message -----
> >From: mistertrik at hotmail.com
> >Date: Sunday, April 20, 2003 1:15 am
> >Subject: re: Medit Bug
> >
> > >
> > > You need to replace this line:
> > > 	exe &=3D3D " " & path & name (Line 1993, in Editor.exw)
> > > with this:
> > > 	exe &=3D3D " \"" & path & name & "\""
> > >
> > > So that the system will see this when you run a file:
> > > ex.exe "c:\euphoria\dir with spaces\test file.exw"
> > >
> > > It will also allow you to run files that actually have a space in
> > > the name,
> > > not just in the path.
> > >
> > > hehe, hope that helps.
> > > =3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3=
D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D
>=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3=
D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D
>=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D
> > > .______<-------------------\__
> > > / _____<--------------------__|=3D3D=3D3D=3D3D
> > > ||_    <-------------------/
> > > \__| Mr Trick
> > >
> > >
> > > TOPICA - Start your own email discussion group. FREE!
> > >
> > >
> >TOPICA - Start your own email discussion group. FREE!
>=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3=
D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D
>=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3=
D=3D3D=3D3D=3D3D
> >
> >
>
>
>TOPICA - Start your own email discussion group. FREE!
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>
>

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu