[Xquartz-dev] 2.3.2_rc4

Jeremy Huddleston jeremyhu at apple.com
Sun Dec 21 09:48:12 PST 2008


On Dec 21, 2008, at 08:41, Harald Hanche-Olsen wrote:

> + Martin Costabel <costabel at wanadoo.fr>:
>
>> The problem with spaces in the directory name is not the problem we  
>> were discussing here.
>
> There are several discussions going at once, so it's really hard to  
> know what is being discussed at any given time.
>
>> Jeremy's wrapper script in rc4 has this problem, as has my wrapper  
>> script. If you find a solution for it, it will be welcome.
>
> Oh, now I see it:
>
> "$(dirname $0)"/X11.bin "${@}"
>
> should really be more like
>
> dir=$(dirname "$0")
> "${dir}/X11.bin" "${@}"

This should be fine:
exec "$(dirname "$0")"/X11.bin "${@}"

It's in my local repo, but I'm waiting so see what pans out of this  
discussion to see if I want to keep it or use something someone else  
comes up with that is more dynamic and guaranteed to work with *every*  
shell (or we could also just test what the user's shell is and go down  
one the path of using it if we recognize it...)



More information about the Xquartz-dev mailing list