bug-bash
[Top][All Lists]
Advanced

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

Re: /bin/sh should set SHELL to /bin/sh


From: Chet Ramey
Subject: Re: /bin/sh should set SHELL to /bin/sh
Date: Thu, 13 Jul 2017 23:02:49 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

On 7/13/17 6:05 PM, John Reiser wrote:

> Bash Version: 4.3
> Patch Level: 43
> Release Status: release
> 
> Description:
>         When invoked as /bin/sh with SHELL unset, then bash should set SHELL
>         to /bin/sh, not to the login shell for the current user.

Posix, the closest thing we have to a standard description of SHELL, says:

"This variable shall represent a pathname of the user's preferred command
language interpreter."

The best approximation of that is the user's login shell.

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



reply via email to

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