From 8f3d6787f5d7caf3ea6f7a01ea44dd7308f005c8 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 2 Mar 2010 15:56:50 +0100 Subject: [PATCH] gsu: Print help text on prefs command. This uses another nice bashism I recently learned. --- funcs/gsu | 1 + 1 file changed, 1 insertion(+) diff --git a/funcs/gsu b/funcs/gsu index 043676c..add1be4 100644 --- a/funcs/gsu +++ b/funcs/gsu @@ -163,6 +163,7 @@ com_prefs() printf " [$default_value]" fi echo + [[ -n "$help_text" ]] && sed -e '/^[ ]*$/d; s/^[ ]*/# /g' <<< "$help_text" printf "$name=$val" [[ "$val" == "$default_value" ]] && printf " # default" echo -- 2.39.5