Subject: Re: bash 3.1-1 "exec -l" doesn't start login shell
From: [email-masked] (Eric Blake)
To: [email-masked]
Cc: David Rothenberger <[email-masked]>
Date: Thu, 12 Jan 2006 05:06:18 +0000

> "exec -l" in bash 3.1-1 doesn't seem to start a login shell. This
> prevents my chere commands from starting a login shell, too.

I couldn't reproduce the failure; can you provide more details?
Here's what I tried:

$ cat foo.c
#include <stdio.h>
int main(int argc, char**argv) {
  return puts(argv[0]);
}
$ (exec foo)
foo
$ (exec -l foo)
-foo
$ echo $BASH_VERSION
3.1.1(1)-release

So exec -l is correctly prepending the '-' to argv[0].  Is you
question about bash not behaving as a login shell when
invoked with argv[0] set to "-bash"?  Have you tried
"bash --login" instead?

--
Eric Blake
volunteer cygwin bash maintainer

Subject: bash 3.1-1 "exec -l" doesn't start login shell
From: David Rothenberger <[email-masked]>
To: [email-masked]
Date: Thu, 12 Jan 2006 00:23:56 +0000

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/