1. linux exu she-bang

Why can't you use the following she-bang in a Euphoria program ?

#!$EUDIR/bin/exu

Why do you have to use the full path instead of taking advantage
of the enviorment variables.
If this could be done then a program would run on any system that
has the proper EUDIR settings.


Bernie

My files in archive:
w32engin.ew mixedlib.e eu_engin.e win32eru.exw

Can be downloaded here:
http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan

new topic     » topic index » view message » categorize

2. Re: linux exu she-bang

Bernie Ryan wrote:
> 
> 
> Why can't you use the following she-bang in a Euphoria program ?
> 
> #!$EUDIR/bin/exu
> 
> Why do you have to use the full path instead of taking advantage
> of the enviorment variables.
> If this could be done then a program would run on any system that
> has the proper EUDIR settings.
> 

What I have discovered may interest the rest of the users.
If a user places the follow she-bang in a program as long as exu
      is somewhere in the path your program will execute. 

#!/usr/bin/env exu

Note: The '/usr/bin/env' part is NOT the path of exu but is
       running a program called env which will find the path for exu.

Bernie

My files in archive:
w32engin.ew mixedlib.e eu_engin.e win32eru.exw

Can be downloaded here:
http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan

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

3. Re: linux exu she-bang

Bernie Ryan wrote:
> 
> Bernie Ryan wrote:
> > 
> > 
> > Why can't you use the following she-bang in a Euphoria program ?

> 
> What I have discovered may interest the rest of the users.
> If a user places the follow she-bang in a program as long as exu
>       is somewhere in the path your program will execute. 
> 
> #!/usr/bin/env exu
> 
> Note: The '/usr/bin/env' part is NOT the path of exu but is
>        running a program called env which will find the path for exu.
> 
> Bernie
>

Wouldn't this be a better choice for the automated she-bang feature
which is implemented in the current shroud program? 

Ken Rhodes
100% MicroSoft Free
SuSE Linux 10.0
No AddWare, SpyWare, Viruses
Life is Good  :)

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

4. Re: linux exu she-bang

Kenneth Rhodes wrote:
> 
> Bernie Ryan wrote:
> > 
> > Bernie Ryan wrote:
> > > 
> > > 
> > > Why can't you use the following she-bang in a Euphoria program ?
> 
> > 
> > What I have discovered may interest the rest of the users.
> > If a user places the follow she-bang in a program as long as exu
> >       is somewhere in the path your program will execute. 
> > 
> > #!/usr/bin/env exu
> > 
> > Note: The '/usr/bin/env' part is NOT the path of exu but is
> >        running a program called env which will find the path for exu.
> > 
> > Bernie
> >
> 
> Wouldn't this be a better choice for the automated she-bang feature
> which is implemented in the current shroud program? 

I'd rather let you do this yourself with an explicit #! line.
The location of env is not standardized 
across all Linux implementations, so this is not portable.

Here's a good reference on shebang lines:
http://homepages.cwi.nl/~aeb/std/shebang/

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

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

5. Re: linux exu she-bang

Robert Craig wrote:
> 
> Kenneth Rhodes wrote:
> > 
> > Bernie Ryan wrote:
> > > 
> > > Bernie Ryan wrote:
> > > > 
> > > > 
> > > > Why can't you use the following she-bang in a Euphoria program ?
> > 
> > > 
> > > What I have discovered may interest the rest of the users.
> > > If a user places the follow she-bang in a program as long as exu
> > >       is somewhere in the path your program will execute. 
> > > 
> > > #!/usr/bin/env exu
> > > 
> > > Note: The '/usr/bin/env' part is NOT the path of exu but is
> > >        running a program called env which will find the path for exu.
> > > 
> > > Bernie
> > >
> > 
> > Wouldn't this be a better choice for the automated she-bang feature
> > which is implemented in the current shroud program? 
> 
> I'd rather let you do this yourself with an explicit #! line.
> The location of env is not standardized 
> across all Linux implementations, so this is not portable.
> 

Rob:
   Your Linux implementation is not portable.
   For instance if you shroud a file on a windows system you generate
   a she-bang that references the exw.exe to run a program.
   If you shroud on a linux system then it may work on that particular 
   system but if it is downloaded by another user they may have
   their Euphoria bin file in a different location.

   My idea is to use the env program is more likely to be available
   on a Linux system than depending on Euphoria be setup the same
   way by every user.

Bernie

My files in archive:
w32engin.ew mixedlib.e eu_engin.e win32eru.exw

Can be downloaded here:
http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan

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

Search



Quick Links

User menu

Not signed in.

Misc Menu