[Xquartz-dev] 2.3.2_rc4

Cameron Simpson cs at zip.com.au
Fri Dec 19 15:11:35 PST 2008


On 20Dec2008 10:08, I wrote:
| On 19Dec2008 16:43, Peter O'Gorman <peter at pogma.com> wrote:
| | Cameron Simpson wrote:
| | > On 20Dec2008 08:57, I wrote:
| | > | What's wrong with this?
| | > |   #!/bin/bash
| | 
| | If you're going to use bash, why not just exec -l the users shell to
| | make it start with argv[0] = '-'?
| | 
| | Not that I'm quite following what you're trying to do though.
| 
| The objective is to invoke the user's (entirely arbitrary) login shell
| to get their login env, and then to the X11 session so it runs with that
| environment.


My reply missed the point of your query, sorry. Not all shells take a -l
option AFAIK. Hence the hopping through login(1).

Cheers,
-- 
Cameron Simpson <cs at zip.com.au> DoD#743
http://www.cskk.ezoshosting.com/cs/


More information about the Xquartz-dev mailing list