This is the mail archive of the cygwin mailing list for the Cygwin project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
> "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
--- Begin Message ---
- From: David Rothenberger <daveroth at acm dot org>
- To: cygwin at cygwin dot com
- Date: Thu, 12 Jan 2006 00:23:56 +0000
- Subject: bash 3.1-1 "exec -l" doesn't start login shell
Attachment: cygcheck.out
Description: Text document-- 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/
--- End Message ---
-- 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/
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |