[Xquartz-dev] 2.3.2_rc4
Peter O'Gorman
peter at pogma.com
Fri Dec 19 15:17:00 PST 2008
Cameron Simpson wrote:
> 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).
My question was, why not:
#! /bin/bash
exec -l "$SHELL" "$@"
See 'help exec' in bash.
Peter
--
Peter O'Gorman
http://pogma.com
More information about the Xquartz-dev
mailing list