bug-bash
[Top][All Lists]
Advanced

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

Re: HOME variable not set when using -l option


From: Chet Ramey
Subject: Re: HOME variable not set when using -l option
Date: Tue, 14 Jan 2014 08:39:57 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.1.1

On 1/13/14 10:25 AM, Audrius Butkevicius wrote:

> Bash Version: 4.2
> Patch Level: 45
> Release Status: release
> 
> Description:
> 
>         Login shell not setting HOME variable when using -l option,
>         but is set when using - as argument zero. This is not
>         differentiated in the documentation,
> 
>         "A login shell is one whose first character of argument zero
>         is a -, or one started with the --login option."
> 
>         therefore I assume it is a bug.

It's not; this is the way bash has behaved for a very long time (at least
twenty years).  A related question is whether bash should be setting HOME
at all; this is something that should be handled by the invoking process.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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