T0005.source-arguments-in-func.source.sh (383B)
1 # -*- mode: sh; mode: sh-bash -*- 2 3 args=("$0" "$@") 4 declare -p args 5 declare -p FUNCNAME 6 declare -p BASH_LINENO 7 declare -p BASH_SOURCE 8 declare -p BASH_ARGC 9 declare -p BASH_ARGV 10 11 # 呼び出しを行った後で extdebug を実行しても意味ない 12 # shopt -s extdebug 13 # declare -p BASH_ARGC 14 # declare -p BASH_ARGV 15 # shopt -u extdebug 16 echo ---------------------------------------- 17