[Xquartz-dev] 2.3.2_rc4

Peter Collinson pc at hillside.co.uk
Sun Dec 21 11:05:11 PST 2008


If this is 'immutable' - then why not just have a tiny C program to do  
this? Would save all this grief.

Standing by to duck (or perhaps turkey or goose at this time of  
year) :-)

On 21 Dec 2008, at 18:45, Harald Hanche-Olsen wrote:

> + Martin Costabel <costabel at wanadoo.fr>:
>
>> The following is tested on bash, tcsh, ksh, zsh login shells, and  
>> in a directory with spaces in its name. In all cases it transmits a  
>> login environment to X11.bin. This is the X11 wrapper script, not  
>> the ~/.x11run user script, which will be superfluous with this.
>>
>> #!/bin/bash --login
>> export cmd=$(dirname "$0")/X11.bin
>> export args="${@}"
>> exec -l "$SHELL" -c 'exec "$cmd" "$args"'
>
> That won't work with es and rc, because double quotes aren't special  
> to those shells. They can put lists of strings, rather than single  
> strings, in variables, but the way they export such values in the  
> environment is by separating the words with SOH (^A) characters, and  
> I guess you don't really want to try to implement that from bash.
>
> If the above method is used (and I am not necessarily opposed to  
> this), one should check first that $SHELL is indeed one of those  
> shells you mentioned. Otherwise, it seems better to du the .x11run  
> thing or, if that fails, fall back on bash.
>
> - Harald
> _______________________________________________
> Xquartz-dev mailing list
> Xquartz-dev at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/xquartz-dev
>



More information about the Xquartz-dev mailing list