Check for presence of SHELL environment variable
authorEric Pruitt <eric.pruitt@gmail.com>
Wed, 29 Oct 2014 00:51:42 +0000 (17:51 -0700)
committerRoberto E. Vargas Caballero <k0ga@shike2.com>
Tue, 11 Nov 2014 18:20:56 +0000 (19:20 +0100)
commitbafbba56cd5735c680676db2adf6f614ba61356f
tree0c2fb58c68d45c8fab539a4c174f4c9e7809ecd1
parent11625c7166b7e4dad414606227acec2de1c36464
Check for presence of SHELL environment variable

- POSIX states the SHELL environment variable "... shall represent a
  pathname of the user's preferred command language interpreter." As
  such, st should check for its presence when deciding what shell to
  use; just as HOME can be defined to override one's passwd-defined home
  directory, a user should also be able to override their passwd-defined
  shell using the SHELL environment variable.
st.c