From f3fad3de0863ed0571b884980132f8e80612776f Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Mon, 7 Oct 2019 20:14:33 +0200 Subject: Introduce fallbacks when getting the user's shell --- weltschmerz.1 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'weltschmerz.1') diff --git a/weltschmerz.1 b/weltschmerz.1 index bb834b5..eaf7f0c 100644 --- a/weltschmerz.1 +++ b/weltschmerz.1 @@ -18,8 +18,17 @@ reload its configuration whilst running. .Pp .Nm executes the given command, or the program specified in the -.Em SHELL +.Ev SHELL environment variable if no command was given. +If the +.Ev SHELL +environment variable is unset or empty, +.Nm +will fall back to the user's shell as configured in +.Pa /etc/passwd , +or finally use +.Pa /bin/sh +if there is no such entry. .Pp The clipboard can be copied to and pasted from with .Sy CTRL + Shift + C -- cgit v1.2.3-2-gb3c3