]> git.tuebingen.mpg.de Git - gsu.git/blobdiff - misc/gsu/subcommand
gsu: Don't export functions.
[gsu.git] / misc / gsu / subcommand
index 332e5a0d43273f352e133f4a31507b061b4bb018..f09c66de613707c42794947e8b0b787c79f11f5e 100644 (file)
@@ -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
-