It is unnecessary to export these as they are never needed in the
environment of subsequently executed commands. In fact, these variables
should be considered private to gsu. The name should thus start with
an underscore.
Print the current preferences.
Usage: prefs [-e]
Print the current preferences.
Usage: prefs [-e]
gsu_complete_options "$com_prefs_options" "$@"
}
gsu_complete_options "$com_prefs_options" "$@"
}
Print the manual.
Usage: man"
Print the manual.
Usage: man"
com_man()
{
local equal_signs="=================================================="
com_man()
{
local equal_signs="=================================================="
Print online help.
Usage: help [command]
Print online help.
Usage: help [command]
Without arguments, print the list of available commands. Otherwise,
print the help text for the given command."
Without arguments, print the list of available commands. Otherwise,
print the help text for the given command."
-export gsu_complete_txt="
Command line completion.
Usage: complete [<cword> <word>...]
Command line completion.
Usage: complete [<cword> <word>...]
gsu_short_msg "### $gsu_name -- $gsu_banner_txt ###"
_gsu_usage 2>&1
{
gsu_short_msg "### $gsu_name -- $gsu_banner_txt ###"
_gsu_usage 2>&1
{
- printf "com_help()\n$gsu_help_txt" | head -n 4; echo "--"
- printf "com_man()\n$gsu_man_txt" | head -n 4; echo "--"
- printf "com_prefs()\n$gsu_prefs_txt" | head -n 4; echo "--"
- printf "com_complete()\n$gsu_complete_txt" | head -n 4; echo "--"
+ printf "com_help()\n$_gsu_help_txt" | head -n 4; echo "--"
+ printf "com_man()\n$_gsu_man_txt" | head -n 4; echo "--"
+ printf "com_prefs()\n$_gsu_prefs_txt" | head -n 4; echo "--"
+ printf "com_complete()\n$_gsu_complete_txt" | head -n 4; echo "--"
grep -EA 2 "$ere" $0
} | grep -v -- '--' \
| sed -En "/$ere/"'!d
grep -EA 2 "$ere" $0
} | grep -v -- '--' \
| sed -En "/$ere/"'!d
return
fi
if test "$1" = "help"; then
return
fi
if test "$1" = "help"; then
ret=$GSU_SUCCESS
return
fi
if test "$1" = "man"; then
ret=$GSU_SUCCESS
return
fi
if test "$1" = "man"; then
ret=$GSU_SUCCESS
return
fi
if test "$1" = "prefs"; then
ret=$GSU_SUCCESS
return
fi
if test "$1" = "prefs"; then
ret=$GSU_SUCCESS
return
fi
if test "$1" = "complete"; then
ret=$GSU_SUCCESS
return
fi
if test "$1" = "complete"; then
- echo "$gsu_complete_txt"
+ echo "$_gsu_complete_txt"
ret=$GSU_SUCCESS
return
fi
ret=$GSU_SUCCESS
return
fi