1. linux exu she-bang
- Posted by Bernie Ryan <xotron at bluefrog.com> Dec 03, 2005
- 549 views
- Last edited Dec 04, 2005
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
2. Re: linux exu she-bang
- Posted by Bernie Ryan <xotron at bluefrog.com> Dec 03, 2005
- 567 views
- Last edited Dec 04, 2005
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
3. Re: linux exu she-bang
- Posted by Kenneth Rhodes <ken_rhodes30436 at yahoo.com> Dec 03, 2005
- 543 views
- Last edited Dec 04, 2005
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 :)
4. Re: linux exu she-bang
- Posted by Robert Craig <rds at RapidEuphoria.com> Dec 04, 2005
- 571 views
- Last edited Dec 05, 2005
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
5. Re: linux exu she-bang
- Posted by Bernie Ryan <xotron at bluefrog.com> Dec 06, 2005
- 597 views
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