winelauncher patch

Ove Kaaven ovek at arcticnet.no
Tue Mar 6 14:36:58 CST 2001


On Tue, 6 Mar 2001, Jeremy White wrote:

> What was wrong with the previous implemenation?
> Are you getting a $0 value that doesn't include
> the path?

For some reason I did at the time I tried, yes. Doesn't seem to happen
anymore, but it's probably not portable (i.e. a bashism?) to assume that
$0 is path-expanded anyway, is it?

If "which" is a problem when $0 contains a path, just change it to
something like

if [ "$0" = `basename $0` ]
then argv0_path=`which "$0"`
else argv0_path="$0"
fi

or whatever.





More information about the wine-devel mailing list