Issue 10: gzlc doesn't run when it's in your $PATH
Reported by bslesinsky, Feb 1, 2009
What steps will reproduce the problem?
1. install gazelle in /usr/local/bin
2. check that gzlc is in the path:

$ which gzlc
/usr/local/bin/gzlc
 
3. Try to run gzlc

$ gzlc
gzlc: cannot open gzlc: No such file or directory

A workaround is to define an alias instead of putting it in your path:

$ alias gzlc=/usr/local/bin/gzlc
$ gzlc
gzlc: no input file


(This is Gazelle 0.4 on OS X.)

Feb 5, 2009
Project Member #1 jhaber...@gmail.com
Ah, I think I figured out the problem.  srlua tries to open argv[0] to find the script.  So when it's run with a full 
path, that succeeds, but when it's called as just "gzlc" it looks for a file called "gzlc" in the local directory.

srlua would be more reliably implemented by just embedding the file as an array in C instead of opening itself to 
find it.  This bug should be fixed for 0.5.
Status: Accepted
Labels: FixTarget-0.5