[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] Non-interactive login shell does not use /etc/profile

From: Chet Ramey
Subject: Re: [Help-bash] Non-interactive login shell does not use /etc/profile
Date: Fri, 13 Jan 2017 12:49:07 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.6.0

On 1/13/17 9:48 AM, John Lane wrote:
> If you start a bash non-interactive login shell using the leading hyphen
> method then the /etc/profile is not used. It is used if the -l option is
> used or if the hyphen method is used with an interactive shell.

This is a compile-time option controlled by a define in config-top.h:
NON_INTERACTIVE_LOGIN_SHELLS.  It's not defined by default.  Some vendors
change the default.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]