X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=misc%2Fgsu%2Fsubcommand;h=f09c66de613707c42794947e8b0b787c79f11f5e;hb=c75c58e9aec5a02ffe5245df373d3eeb432769b2;hp=332e5a0d43273f352e133f4a31507b061b4bb018;hpb=d84fb61667757b1e62b915781357e10693ce8a9e;p=gsu.git diff --git a/misc/gsu/subcommand b/misc/gsu/subcommand index 332e5a0..f09c66d 100644 --- a/misc/gsu/subcommand +++ b/misc/gsu/subcommand @@ -10,7 +10,6 @@ _gsu_usage() { gsu_short_msg "# Usage: $_gsu_self command [options]" } -export -f _gsu_usage # Each line matching this is recognized as a subcommand. The name # of the subcommand is the first subexpression. @@ -23,7 +22,6 @@ _gsu_available_commands() sed -ne "s/$gsu_command_regex/\1/g;T;p" $0 } | sort | tr '\n' ' ')" } -export -f _gsu_available_commands _gsu_print_available_commands() {( @@ -44,7 +42,6 @@ _gsu_print_available_commands() echo ) 2>&1 } -export -f _gsu_print_available_commands export gsu_prefs_txt=" Print the current preferences. @@ -95,7 +92,6 @@ _com_prefs() echo done } -export -f _com_prefs export gsu_man_txt=" Print the manual. @@ -139,7 +135,6 @@ _com_man() done ret=$GSU_SUCCESS } -export -f _com_man _gsu_banner_msg() { @@ -151,7 +146,6 @@ _gsu_banner_msg() fi gsu_short_msg "$txt ###" } -export -f _gsu_banner_msg export gsu_help_txt=" Print online help. @@ -215,7 +209,6 @@ _com_help() result="$1" ret=-$E_GSU_BAD_COMMAND } -export -f _com_help # Wrapper for bash's getopts. # @@ -302,7 +295,6 @@ gsu_getopts() " ret=$GSU_SUCCESS } -export -f gsu_getopts gsu() { @@ -345,7 +337,6 @@ gsu() _gsu_print_available_commands exit 1 } -export -f gsu # Check number of arguments. # @@ -376,5 +367,3 @@ gsu_check_arg_count() [[ $1 -gt $3 ]] && return ret=$GSU_SUCCESS } -export -f gsu_check_arg_count -